Function at 0x4aef49
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x5df7e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
push 0x5c
mov eax, dword [ebx]
mov dword [ebp - 0x48], ebx
mov eax, dword [eax + 0x8568]
mov dword [ebp - 0x44], eax
push dword [eax]
call fcn.0052a6b0
mov ebx, dword [ebx]
xorps xmm0, xmm0
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
movlpd qword [ebp - 0x70], xmm0
call fcn.004af5eb
mov ecx, dword [ebx + 0x138]
mov edi, edx
mov edx, dword [ebp - 0x48]
mov esi, eax
mov dword [ebp - 0x78], esi
mov dword [edx + 0x194], ecx
lea ecx, [ebx + 0x474]
mov eax, dword [ebx + 0xf4]
mov dword [edx + 0x198], eax
mov eax, dword [edx]
mov dword [eax + 0xd4], ecx
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4af1eb
cmp byte [eax + 1], 0
je 0x4af1eb
mov eax, dword [ebx + 0x8560]
or eax, dword [ebx + 0x8564]
je 0x4aefe3
mov eax, 0x5bb1bc
jmp 0x4af027
mov eax, dword [edx]
push dword [eax + 0x28c]
mov eax, dword [ebp - 0x44]
push 0x8301
push dword [eax]
call fcn.00542fab
add esp, 0xc
test eax, eax
jns 0x4af01b
mov eax, dword [ebp - 0x44]
push dword [eax]
push str.Cant_open__s_for_writing
push ebx
call fcn.0049dc37
add esp, 0xc
push 0x17
jmp 0x4af1ed
push eax
call fcn.00543dd7
pop ecx
mov eax, 0x5bb1dc
push eax
mov eax, dword [ebp - 0x44]
push dword [eax]
call fcn.0053d18d
mov dword [ebp - 0x4c], eax
pop ecx
pop ecx
test eax, eax
je 0x4af001
mov edx, dword [ebx + 0x180]
mov ecx, dword [ebx + 0x184]
cmp edx, 0xffffffff
jne 0x4af050
cmp ecx, edx
je 0x4af05f
push ecx
push edx
mov ecx, ebx
call fcn.004ad7fe
mov eax, dword [ebp - 0x4c]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x74], ecx
cmp dword [ebx + 0x8564], ecx
jg 0x4af0b7
jl 0x4af076
cmp dword [ebx + 0x8560], ecx
jae 0x4af0b7
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.0053d3ec
pop ecx
push eax
call fcn.0053ea40
pop ecx
pop ecx
test eax, eax
je 0x4af0a5
push dword [ebp - 0x4c]
call fcn.00534efe
mov eax, dword [ebp - 0x44]
pop ecx
push dword [eax]
push str.Cant_get_the_size_of__s
jmp 0x4af00b
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x8560], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x8564], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x6c]
push eax
mov edx, 0x4000
call fcn.004a3d63
mov dword [ebp - 0x44], eax
pop ecx
test eax, eax
jne 0x4af1db
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x54], ecx
test ecx, ecx
jle 0x4af1c5
mov eax, dword [ebx + 0x8564]
mov edx, dword [ebx + 0x8560]
mov dword [ebp - 0x44], eax
mov eax, edx
or eax, dword [ebp - 0x44]
je 0x4af15d
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x74], eax
jg 0x4af12c
jl 0x4af115
cmp ecx, edx
ja 0x4af12c
xor ecx, ecx
lea esi, [ebx + 0x474]
sub edx, dword [ebp - 0x5c]
mov dword [ebp - 0x44], esi
push ecx
pop esi
sbb eax, esi
mov esi, dword [ebp - 0x78]
jmp 0x4af149
mov eax, edx
xorps xmm0, xmm0
lea edx, [ebx + 0x474]
movlpd qword [ebp - 0x60], xmm0
add edx, eax
sub ecx, eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x60]
mov dword [ebx + 0x8560], edx
mov dword [ebx + 0x8564], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], ecx
jmp 0x4af163
lea eax, [ebx + 0x474]
push dword [ebp - 0x4c]
push ecx
push 1
push eax
call fcn.00535c15
mov ecx, dword [ebp - 0x54]
add esp, 0x10
cmp eax, ecx
jne 0x4af1c0
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x50]
add edx, ecx
push 0
pop ecx
adc eax, ecx
mov dword [ebp - 0x64], edx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov dword [ebx + 0x378], edx
mov dword [ebx + 0x37c], eax
call fcn.004ad835
test eax, eax
jne 0x4af1bc
push edi
push esi
mov ecx, ebx
call fcn.004af622
mov dword [ebp - 0x44], eax
pop ecx
pop ecx
test eax, eax
je 0x4af0c3
jmp 0x4af1db
push 0x2a
jmp 0x4af1c2
push 0x37
pop esi
jmp 0x4af1de
mov ecx, dword [ebp - 0x48]
call fcn.004ad835
mov ecx, dword [ebp - 0x44]
test eax, eax
push 0x2a
pop edx
cmovne ecx, edx
mov dword [ebp - 0x44], ecx
mov esi, dword [ebp - 0x44]
push dword [ebp - 0x4c]
call fcn.00534efe
pop ecx
mov eax, esi
jmp 0x4af1ee
push 0x25
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005121be
leave
ret