Function at 0x418fa0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ad98
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x588790]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, str._ZFile::WriteZip2Package_Start
mov dword [ebp - 4], 2
call fcn.00408b90
mov eax, dword [ebp + 8]
mov esi, 0x10
cmp dword [ebp + 0x1c], esi
jae 0x418fe9
lea eax, [ebp + 8]
push 0x53a9ec
push eax
call fcn.00504d6d
push 2
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x1c], ebx
call fcn.005054ce
push ebx
call fcn.00505130
push eax
push 0x53aac0
mov dword [ebp - 0x14], eax
call fcn.005067af
push 0
push 0
push ebx
call fcn.005054ce
mov eax, dword [ebp + 0x40]
add esp, 0x2c
cmp dword [ebp + 0x54], esi
jae 0x41902f
lea eax, [ebp + 0x40]
push 0x53a9ec
push eax
call fcn.00504d6d
push 2
mov edi, eax
push 0
push edi
mov dword [ebp - 0x20], edi
call fcn.005054ce
push edi
call fcn.00505130
push 0
push 0
push edi
mov dword [ebp - 0x24], eax
call fcn.005054ce
push 0x80000
mov dword [ebp - 0x10], 0
call fcn.004ef56e
push 0x80000
mov esi, eax
push 0
push esi
call fcn.00509940
add esp, 0x34
nop
push ebx
push 0x80000
push 1
push esi
call fcn.00505cac
push edi
push eax
push 1
push esi
call fcn.00504f22
mov ecx, dword [ebp - 0x10]
add ecx, eax
add esp, 0x20
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0x14]
jl 0x419080
mov eax, dword [ebp + 0x24]
mov ebx, 0x10
cmp dword [ebp + 0x38], ebx
jae 0x4190b8
lea eax, [ebp + 0x24]
push 0x53a9ec
push eax
call fcn.00504d6d
push 2
mov edi, eax
push 0
push edi
call fcn.005054ce
push edi
call fcn.00505130
push eax
push 0x53aac0
mov dword [ebp - 0x18], eax
call fcn.005067af
push 0
push 0
push edi
call fcn.005054ce
mov eax, dword [ebp + 0x40]
add esp, 0x2c
cmp dword [ebp + 0x54], ebx
jae 0x4190fb
lea eax, [ebp + 0x40]
push 0x53a9ec
push eax
call fcn.00504d6d
push 2
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x14], ebx
call fcn.005054ce
push ebx
call fcn.00505130
push 0
push 0
push ebx
call fcn.005054ce
add esp, 0x24
xor ebx, ebx
lea ebx, [ebx]
push 0x2800
push 0
push esi
call fcn.00509940
push edi
push 0x80000
push 1
push esi
call fcn.00505cac
mov ecx, dword [ebp - 0x14]
push ecx
push eax
push 1
push esi
call fcn.00504f22
add ebx, eax
add esp, 0x2c
cmp ebx, dword [ebp - 0x18]
jl 0x419130
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005055b7
mov eax, dword [ebp - 0x20]
push eax
call fcn.005055b7
push edi
call fcn.005055b7
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.005055b7
push esi
call fcn.004ad85d
mov eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x4c], edx
cdq
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov eax, ebx
cdq
sub esp, 8
mov ecx, esp
xor ebx, ebx
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp + 0x5c]
mov dword [ebp + 0x5c], esp
push 0xffffffffffffffff
mov dword [ebp - 0x40], eax
push ebx
lea eax, [ebp + 0x40]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push eax
mov dword [ebp - 0x68], 0x99d668fa
mov dword [ebp - 0x64], 0xc2630a1c
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], 0x40
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x58], edx
mov byte [ecx], bl
call fcn.00404580
sub esp, 0x40
mov ecx, 0x10
lea esi, [ebp - 0x68]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00418ce0
add esp, 0x5c
mov edi, str._ZFile::WriteZip2Package_End
call fcn.00408b90
mov esi, 0x10
cmp dword [ebp + 0x1c], esi
jb 0x41922d
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ad85d
add esp, 4
mov edi, 0xf
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x41924c
mov edx, dword [ebp + 0x24]
push edx
call fcn.004ad85d
add esp, 4
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x34], ebx
mov byte [ebp + 0x24], bl
cmp dword [ebp + 0x54], esi
jb 0x419266
mov eax, dword [ebp + 0x40]
push eax
call fcn.004ad85d
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret