Function at 0x452d09
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7c]
sub esp, 0x7c
push 0xffffffffffffffff
push 0x49c3c0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4c54e8]
xor eax, ebp
mov dword [ebp + 0x78], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0x20
lea eax, [esi + 0x488]
push eax
lea ecx, [ebp + 0x48]
push ecx
call fcn.00450829
mov edx, dword [esi]
mov edx, dword [edx + 8]
add esp, 0xc
mov edi, 0x10
push edi
lea eax, [ebp + 0x68]
push eax
lea ecx, [esi + 0x4ac]
push ecx
mov ecx, esi
call edx
xor ebx, ebx
mov dword [ebp + 0x44], 0xf
mov dword [ebp + 0x40], ebx
mov byte [ebp + 0x30], bl
push 0x4a486c
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], ebx
push eax
mov ecx, esi
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x24], ebx
mov byte [ebp - 4], 1
call fcn.00452989
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x2c]
mov byte [ebp - 4], 2
call fcn.00404749
cmp dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
jb 0x452dbe
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00475c61
add esp, 4
cmp dword [ebp + 0x44], edi
mov eax, dword [ebp + 0x30]
jae 0x452dc9
lea eax, [ebp + 0x30]
push 0x4a222c
push eax
call fcn.00477def
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [ebp + 0x24], edi
jne 0x452df5
push 0x4bb980
lea edx, [ebp + 0x18]
push edx
mov dword [ebp + 0x18], 1
call fcn.00475dbf
push edi
push 1
lea eax, [ebp + 0x48]
push 0x20
push eax
call fcn.004775cb
push edi
call fcn.00478a32
add esp, 0x14
test eax, eax
je 0x452e25
push 0x4bb980
lea ecx, [ebp + 0x10]
push ecx
mov dword [ebp + 0x10], 2
call fcn.00475dbf
mov eax, dword [esi + 0x4c8]
test eax, eax
lea ebx, [esi + 0x4c8]
jle 0x452f40
cmp eax, 0x100000
jae 0x452f40
push 0
mov ecx, esi
call fcn.00469059
mov ecx, eax
mov eax, dword [ebx]
cdq
idiv ecx
test edx, edx
jne 0x452f40
push edi
push 1
lea edx, [ebp + 0x68]
push 0x10
push edx
call fcn.004775cb
push edi
call fcn.00478a32
add esp, 0x14
test eax, eax
je 0x452e8c
push 0x4bb980
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 3
call fcn.00475dbf
push edi
push 1
push 4
push ebx
call fcn.004775cb
push edi
call fcn.00478a32
add esp, 0x14
test eax, eax
je 0x452eb9
push 0x4bb980
lea ecx, [ebp + 0xc]
push ecx
mov dword [ebp + 0xc], 4
call fcn.00475dbf
mov edx, dword [ebx]
push edx
call fcn.0046f927
add esp, 4
test eax, eax
mov dword [ebp + 0x28], eax
jne 0x452ee0
push 0x4bb980
lea eax, [ebp + 0x20]
push eax
mov dword [ebp + 0x20], 6
call fcn.00475dbf
mov ecx, dword [ebx]
mov edx, dword [esi]
mov edx, dword [edx + 8]
push ecx
push eax
mov eax, dword [esi + 0x4c4]
push eax
mov ecx, esi
call edx
mov eax, dword [ebx]
mov esi, dword [ebp + 0x28]
push edi
push 1
push eax
push esi
call fcn.004775cb
push edi
call fcn.00478a32
add esp, 0x14
test eax, eax
je 0x452f25
push 0x4bb980
lea ecx, [ebp + 0x14]
push ecx
mov dword [ebp + 0x14], 7
call fcn.00475dbf
push esi
call fcn.004761f9
push edi
call fcn.004777cb
add esp, 8
lea ecx, [ebp + 0x2c]
call fcn.00413419
mov al, 1
jmp 0x452fa0
push 0x4bb980
lea edx, [ebp + 0x1c]
push edx
mov dword [ebp + 0x1c], 5
call fcn.00475dbf
mov eax, dword [0x4c7aac]
test eax, eax
je 0x452f70
mov ecx, dword [ebp + 4]
push ecx
push 0x4a4844
push eax
call fcn.00450159
add esp, 0xc
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x452f80
push eax
call fcn.004761f9
add esp, 4
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x452f90
push eax
call fcn.004777cb
add esp, 4
mov eax, 0x44fd5d
ret
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x78]
xor ecx, ebp
call fcn.004761ea
add ebp, 0x7c
mov esp, ebp
pop ebp
ret