Function at 0x4059a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475f20
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x49f4a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], edx
mov esi, ecx
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4059d9
mov eax, dword [esi]
push 0x491a58
push eax
call fcn.0045605b
mov edi, eax
add esp, 8
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x405a25
push str.Error:_Could_not_create_file
push 0x4a4a80
call fcn.0040a4a0
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x405a0d
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.0040b560
push eax
call fcn.0040a770
add esp, 0x10
xor al, al
jmp 0x405c76
push edi
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x54504d4d
push 4
push eax
call fcn.00458a90
mov esi, dword [ebp - 0x38]
mov eax, 0x80808081
push edi
push 1
push 4
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00458a90
add esp, 0x20
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x30]
movups xmmword [ebp - 0x30], xmm0
call fcn.00428e50
mov dword [ebp - 4], 0
mov eax, 0x80808081
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, 0xff
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c13b
mov edx, dword [esi]
mov ecx, dword [esi + 4]
sub ecx, edx
mov dword [ebp - 0x3c], eax
push ecx
push edx
push eax
call fcn.0044d050
lea eax, [ebp - 0x4c]
push eax
call fcn.00403d10
add esp, 0x14
mov edx, dword [ebp - 0x38]
mov byte [ebp - 4], 1
mov esi, dword [eax]
mov eax, 0x80808081
push esi
mov ecx, dword [edx + 4]
sub ecx, dword [edx]
mov esi, dword [ebp - 0x3c]
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xff
push eax
push esi
lea eax, [ebp - 0x30]
push eax
call fcn.00404d50
mov ecx, eax
call fcn.00429240
test al, al
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x4c]
sete al
mov byte [ebp - 0x31], al
test edx, edx
je 0x405b55
mov ecx, dword [ebp - 0x44]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x405b48
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c91
push ecx
push edx
call fcn.0042bbf9
mov al, byte [ebp - 0x31]
add esp, 8
test al, al
je 0x405b80
push str.cannot_compress_n
push 0x4a4a80
call fcn.0040a4a0
push esi
call fcn.0042bc07
push edi
call fcn.00456431
add esp, 0x10
mov byte [ebp - 0x31], 0
jmp 0x405c6b
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x28]
push 0x491a90
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x80808081
imul ecx
add edx, ecx
lea ecx, [ebp - 0x30]
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
call fcn.00429490
push eax
push str.__GetSize
push dword [edi + 4]
push str.___Encrypt___
push dword [edi + 8]
push str.___Compress___
push dword [edi + 0xc]
push 0x491a90
push esi
push str.MobProto_count
push 0x4a4998
call fcn.0040a4a0
add esp, 8
mov ecx, eax
call fcn.00407290
push eax
call fcn.0040a4a0
add esp, 8
mov ecx, eax
call fcn.00407290
push eax
call fcn.0040a4a0
add esp, 8
mov ecx, eax
call fcn.00407290
push eax
call fcn.0040a4a0
add esp, 8
mov ecx, eax
call fcn.00407290
push eax
call fcn.0040a4a0
add esp, 8
mov ecx, eax
call fcn.00407290
push eax
call fcn.0040a4a0
add esp, 8
lea ecx, [ebp - 0x30]
call fcn.00429490
mov esi, dword [ebp - 0x40]
push esi
push 1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.00458a90
push esi
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x30]
call fcn.00458a90
push esi
call fcn.00456431
push dword [ebp - 0x3c]
call fcn.0042bc07
add esp, 0x28
mov byte [ebp - 0x31], 1
lea ecx, [ebp - 0x30]
call fcn.00428ec0
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042bbb8
mov esp, ebp
pop ebp
ret
call fcn.00455e0a
int3