Function at 0x45d15d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x49f270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x5c
mov eax, dword [ebx]
mov dword [ebp - 0x48], ebx
mov eax, dword [eax + 0x8664]
mov dword [ebp - 0x40], eax
push dword [eax]
call fcn.0046d9b0
mov ebx, dword [ebx]
xorps xmm0, xmm0
pop ecx
pop ecx
mov dword [ebp - 0x4c], eax
movlpd qword [ebp - 0x5c], xmm0
call fcn.00450695
mov ecx, dword [ebx + 0x154]
mov edi, edx
mov edx, dword [ebp - 0x48]
mov esi, eax
mov dword [edx + 0x280], ecx
lea ecx, [ebx + 0x53c]
mov eax, dword [ebx + 0x104]
mov dword [edx + 0x284], eax
mov eax, dword [edx]
mov dword [eax + 0xdc], ecx
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x45d1da
push 0x25
pop eax
jmp 0x45d3eb
cmp byte [eax + 1], 0
je 0x45d1d2
mov eax, dword [ebx + 0x8650]
or eax, dword [ebx + 0x8654]
je 0x45d1f5
push 0x48f354
jmp 0x45d237
mov eax, dword [edx]
push dword [eax + 0x330]
mov eax, dword [ebp - 0x40]
push 0x8301
push dword [eax]
call fcn.00482452
add esp, 0xc
test eax, eax
jns 0x45d22a
mov eax, dword [ebp - 0x40]
push dword [eax]
push str.Cant_open__s_for_writing
push ebx
call fcn.0044d89b
add esp, 0xc
push 0x17
jmp 0x45d1d4
push eax
call fcn.0046ad4c
mov dword [esp], 0x489c80
mov eax, dword [ebp - 0x40]
push dword [eax]
call fcn.0046e5fa
mov dword [ebp - 0x44], eax
pop ecx
pop ecx
test eax, eax
je 0x45d213
mov edx, dword [ebx + 0x1b0]
mov ecx, dword [ebx + 0x1b4]
cmp edx, 0xffffffff
jne 0x45d25f
cmp ecx, edx
je 0x45d26d
push ecx
push edx
push ebx
call fcn.0045733f
mov eax, dword [ebp - 0x44]
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x60], ecx
cmp dword [ebx + 0x8654], ecx
jg 0x45d2cd
jl 0x45d284
cmp dword [ebx + 0x8650], ecx
jae 0x45d2cd
lea ecx, [ebp - 0x3c]
push ecx
push eax
call fcn.0046b037
pop ecx
push eax
call fcn.0046fd7c
pop ecx
pop ecx
test eax, eax
je 0x45d2bb
push dword [ebp - 0x44]
call fcn.0046d373
mov eax, dword [ebp - 0x40]
push dword [eax]
push str.Cant_get_the_size_of__s
push ebx
call fcn.0044d89b
add esp, 0x10
jmp 0x45d226
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x8650], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x8654], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x58]
push eax
push 0x4000
push dword [ebp - 0x48]
call fcn.00446f04
add esp, 0xc
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x45d3dd
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x50], ecx
test ecx, ecx
jle 0x45d3c6
mov eax, dword [ebx + 0x8654]
mov edx, dword [ebx + 0x8650]
mov dword [ebp - 0x40], eax
mov eax, edx
or eax, dword [ebp - 0x40]
je 0x45d340
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x60], eax
jg 0x45d39e
jl 0x45d32a
cmp ecx, edx
ja 0x45d39e
sub edx, ecx
push 0
pop ecx
sbb eax, ecx
mov dword [ebx + 0x8650], edx
mov dword [ebx + 0x8654], eax
mov dword [ebp - 0x50], ecx
lea edx, [ebx + 0x53c]
push dword [ebp - 0x44]
push ecx
push 1
push edx
call fcn.0046b8d8
mov ecx, dword [ebp - 0x50]
add esp, 0x10
cmp eax, ecx
jne 0x45d3c1
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x4c]
add edx, ecx
push 0
pop ecx
adc eax, ecx
mov dword [ebp - 0x54], edx
push eax
push edx
push ebx
mov dword [ebp - 0x4c], eax
call fcn.00457325
push dword [ebp - 0x48]
call fcn.004574c1
add esp, 0x10
test eax, eax
jne 0x45d3bd
push edi
push esi
push ebx
call fcn.0045718b
add esp, 0xc
mov dword [ebp - 0x40], eax
test eax, eax
je 0x45d2d9
jmp 0x45d3dd
mov eax, edx
lea edx, [ebx + 0x53c]
sub ecx, eax
add edx, eax
xor eax, eax
mov dword [ebp - 0x50], ecx
mov dword [ebx + 0x8650], eax
mov dword [ebx + 0x8654], eax
jmp 0x45d346
push 0x2a
jmp 0x45d3c3
push 0x37
pop esi
jmp 0x45d3e0
push dword [ebp - 0x48]
call fcn.004574c1
pop ecx
mov ecx, dword [ebp - 0x40]
test eax, eax
push 0x2a
pop edx
cmovne ecx, edx
mov dword [ebp - 0x40], ecx
mov esi, dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.0046d373
pop ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00467f35
mov esp, ebp
pop ebp
ret