Function at 0x503564
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x113]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x11c], esi
mov byte [ebp - 0x114], bl
call fcn.005117f0
xor eax, eax
lea edi, [ebp - 0x144]
mov dword [ebp - 0x148], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x134]
mov dword [ebp - 0x138], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x13c]
add esp, 0xc
mov dword [ebp - 0x140], ebx
mov edx, esi
stosd dword es:[edi], eax
mov dword [ebp - 0x130], ebx
call fcn.004c3b34
test eax, eax
jne 0x503688
mov edx, dword [ebp - 0x118]
call fcn.004c3b34
test eax, eax
jne 0x503688
push ebx
push ebx
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x148]
push eax
push esi
call fcn.0042b52f
add esp, 0x18
test eax, eax
jne 0x503652
mov edi, esi
call fcn.0042ad00
test eax, eax
je 0x503688
cmp dword [0x5c5700], ebx
je 0x50365c
push str._GetLastError_
push ebx
push dword [ebp - 0x118]
mov dword [0x5c5700], ebx
push esi
push str.:5:gzUnpackFile___s_____s____d__encountered_a_problem:_GetFileTime___FAILED:__s
call fcn.004265da
add esp, 0x14
jmp 0x50365c
mov dword [ebp - 0x130], 1
push 0x530488
push esi
call fcn.00503410
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x128], eax
jne 0x503699
push ebx
push dword [ebp - 0x118]
push esi
push str.:1:gzUnpackFile___s_____s____d__FAILED:_gzopen___FAILED.
call fcn.00426c01
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret
push dword [ebp - 0x118]
mov edi, 0x104
mov ecx, edi
lea eax, [ebp - 0x114]
call fcn.004c3b66
pop ecx
mov esi, eax
call fcn.004c47b0
mov edx, esi
call fcn.004c3b34
test eax, eax
jne 0x5036f4
mov eax, esi
push eax
call fcn.005120b0
pop ecx
mov ecx, esi
dec ecx
cmp byte [eax + ecx], 0x5c
jne 0x5036f4
push dword [ebp - 0x11c]
mov ecx, edi
mov eax, esi
call fcn.004c3b66
pop ecx
push dword [ebp - 0x118]
call fcn.004c424b
pop ecx
jmp 0x50370c
push dword [ebp - 0x11c]
lea eax, [ebp - 0x114]
push eax
call fcn.00512a33
test eax, eax
pop ecx
pop ecx
jne 0x503717
lea esi, [ebp - 0x114]
call fcn.004c437e
push 0x169
mov esi, 0x530484
push str..zLib.c
mov edx, esi
lea ecx, [ebp - 0x114]
call fcn.0042d2c6
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x12c], eax
jne 0x50376b
push esi
push ebx
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push str.:1:gzUnpackFile___s_____s____d__FAILED:_fopen___s___FAILED.
call fcn.00426c01
add esp, 0x14
push dword [ebp - 0x128]
call fcn.0050349b
pop ecx
jmp 0x503688
push 0x100002
call fcn.00513703
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x124], ebx
je 0x503801
push 0x100000
push edi
push dword [ebp - 0x128]
call fcn.0050343f
mov esi, eax
add esp, 0xc
cmp esi, ebx
jle 0x5037f8
push dword [ebp - 0x12c]
add dword [ebp - 0x124], esi
push 1
push esi
push edi
call fcn.005110f1
add esp, 0x10
cmp eax, ebx
jg 0x503788
mov ecx, dword [0x6e2abc]
inc dword [0x6e2abc]
cmp ecx, 0xa
jae 0x5037f0
push str._GetLastError_
push esi
push eax
push ebx
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push str.:4:gzUnpackFile___s_____s____d__FAILED:_WriteFile___FAILED:_Could_only_write__ld_of__ld_bytes:__s
call fcn.004265da
add esp, 0x1c
inc dword [ebp - 0x120]
jmp 0x503788
push edi
call fcn.00511758
pop ecx
jmp 0x503825
push ebx
push dword [ebp - 0x118]
mov dword [ebp - 0x120], 1
push dword [ebp - 0x11c]
push str.:4:gzUnpackFile___s_____s____d__FAILED:_Out_of_memory.
call fcn.004265da
add esp, 0x10
mov ecx, dword [ebp - 0x12c]
call fcn.0042d70e
push dword [ebp - 0x128]
call fcn.0050349b
cmp dword [ebp - 0x130], ebx
pop ecx
je 0x503868
push ebx
push ebx
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0x140]
call fcn.0042b67b
add esp, 0x10
cmp dword [ebp - 0x124], ebx
je 0x503688
cmp dword [ebp - 0x120], ebx
jne 0x503688
xor eax, eax
inc eax
jmp 0x50368a