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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a0d0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
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 esi, ecx
mov edi, str._ZFile::Restorezip_Start
mov dword [ebp - 4], 1
call fcn.00408b90
mov eax, dword [ebp + 8]
mov edi, 0x10
cmp dword [ebp + 0x1c], edi
jae 0x4192cb
lea eax, [ebp + 8]
push 0x53a190
push eax
call fcn.00504d6d
xor ebx, ebx
add esp, 8
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x419332
push str.cant_open_the_file
call fcn.005067af
add esp, 4
cmp dword [ebp + 0x1c], edi
jb 0x419300
mov eax, dword [ebp + 8]
push eax
call fcn.004ad85d
add esp, 4
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], edi
jb 0x41931e
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.004ad85d
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, ebx
jne 0x41934d
mov edx, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x58]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 0x60]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp + 0x64]
mov dword [ebp - 0x1c], edx
jmp 0x419372
cmp esi, 1
jne 0x41936f
mov ecx, dword [ebp + 0x60]
add ecx, dword [ebp + 0x58]
mov edx, dword [ebp + 0x64]
adc edx, dword [ebp + 0x5c]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 0x68]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp + 0x6c]
mov dword [ebp - 0x1c], edx
jmp 0x419372
mov ecx, dword [ebp - 0x20]
push ebx
push ecx
push eax
call fcn.005054ce
add esp, 0xc
mov esi, 0x2800
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x1c], ebx
jg 0x419397
jl 0x419391
cmp dword [ebp - 0x20], esi
jae 0x419397
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x24]
cmp dword [ebp + 0x38], edi
jae 0x4193a2
lea eax, [ebp + 0x24]
push 0x537a68
push eax
call fcn.00504d6d
push esi
mov edi, eax
call fcn.004ef56e
push 0x2800
mov esi, eax
push 0
push esi
call fcn.00509940
push 0x2800
push 0
push esi
call fcn.00509940
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
push ecx
push edx
push 1
push esi
call fcn.00505cac
push edi
push eax
push 1
push esi
call fcn.00504f22
mov ecx, eax
cdq
add esp, 0x44
mov dword [ebp - 0x28], eax
cmp edx, dword [ebp - 0x1c]
jg 0x419453
jl 0x419403
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x28], eax
ja 0x419456
add ebx, ecx
mov eax, ebx
cdq
cmp eax, dword [ebp - 0x20]
jne 0x419412
cmp edx, dword [ebp - 0x1c]
je 0x419472
push 0x2800
push 0
push esi
call fcn.00509940
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
push 1
push esi
call fcn.00505cac
push edi
push eax
push 1
push esi
call fcn.00504f22
mov ecx, eax
lea eax, [ecx + ebx]
cdq
add esp, 0x2c
mov dword [ebp - 0x28], eax
cmp edx, dword [ebp - 0x1c]
jl 0x419403
jg 0x419453
mov edx, dword [ebp - 0x20]
cmp eax, edx
jbe 0x419403
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
push ecx
sub eax, ebx
push eax
push 1
push esi
call fcn.00505cac
push edi
push eax
push 1
push esi
call fcn.00504f22
add esp, 0x20
mov edx, dword [ebp - 0x10]
push edx
call fcn.005055b7
push edi
call fcn.005055b7
push esi
call fcn.004ad85d
add esp, 0xc
mov edi, str._ZFile::Restorezip_End
call fcn.00408b90
mov esi, 0x10
cmp dword [ebp + 0x1c], esi
jb 0x4194aa
mov eax, dword [ebp + 8]
push eax
call fcn.004ad85d
add esp, 4
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp dword [ebp + 0x38], esi
jb 0x4194cd
mov ecx, dword [ebp + 0x24]
push ecx
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