Function at 0x424770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
mov eax, dword [0x4ac110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x4a8], eax
push esi
mov esi, dword [ebp + 0x14]
push edi
cmp dword [ebx + 0xc], 0
je 0x4247b2
mov eax, 0x40000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebx + 0x24], 0
je 0x4247d0
mov eax, 0x50000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x130]
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4247e0
mov cl, byte [ebp - 0x130]
test cl, cl
je 0x42518f
lea eax, [ebp - 0x130]
cmp cl, 0x5c
jne 0x424809
mov byte [eax], 0x2f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x424801
cmp esi, 4
jne 0x42483f
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x424820
sub ecx, edx
cmp byte [ebp + ecx - 0x131], 0x2f
je 0x42483f
mov byte [ebp - 0x4a1], 1
jmp 0x424962
mov byte [ebp - 0x4a1], 0
mov edi, 8
mov dword [ebp - 0x4b0], edi
cmp esi, 4
je 0x424962
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x424863
sub ecx, edx
mov byte [ebp - 0x4a1], al
lea esi, [ebp - 0x130]
add esi, ecx
lea eax, [ebp - 0x130]
cmp esi, eax
jbe 0x4248bf
nop dword [eax]
nop dword [eax + eax]
cmp byte [esi], 0x2e
mov edi, 8
mov byte [ebp - 0x4a1], 0
mov dword [ebp - 0x4b0], edi
je 0x4248d2
dec esi
mov byte [ebp - 0x4a1], 0
lea eax, [ebp - 0x130]
mov dword [ebp - 0x4b0], edi
cmp esi, eax
ja 0x424890
lea eax, [ebp - 0x130]
cmp esi, eax
jne 0x4248d2
cmp byte [esi], 0x2e
jne 0x42496a
push 0x4a1f74
push esi
call fcn.00476687
add esp, 8
test eax, eax
je 0x424962
push str..zip
push esi
call fcn.00476687
add esp, 8
test eax, eax
je 0x424962
push str..zoo
push esi
call fcn.00476687
add esp, 8
test eax, eax
je 0x424962
push str..arc
push esi
call fcn.00476687
add esp, 8
test eax, eax
je 0x424962
push str..lzh
push esi
call fcn.00476687
add esp, 8
test eax, eax
je 0x424962
push str..arj
push esi
call fcn.00476687
add esp, 8
test eax, eax
je 0x424962
push 0x4a1fa0
push esi
call fcn.00476687
add esp, 8
test eax, eax
je 0x424962
push str..tgz
push esi
call fcn.00476687
add esp, 8
test eax, eax
jne 0x42496a
xor edi, edi
mov dword [ebp - 0x4b0], edi
mov eax, dword [ebp + 0x14]
cmp eax, 2
jne 0x424a27
mov eax, dword [ebp - 0x4a8]
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x64], 0
mov byte [ebx + 0x60], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x54], 0
test eax, eax
je 0x424b23
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4a8], eax
cmp eax, 0xffffffff
jne 0x4249ed
mov esi, 0x200
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret 0x10
push 0
push eax
mov ecx, ebx
call fcn.00424040
mov esi, eax
test esi, esi
je 0x424a1e
push dword [ebp - 0x4a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebx + 0x60], 1
jmp 0x424bf9
cmp eax, 1
jne 0x424a59
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x4a8]
call fcn.00424040
mov esi, eax
test esi, esi
je 0x424bf9
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 3
jne 0x424b3d
mov eax, dword [ebp - 0x4a8]
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x64], eax
mov byte [ebx + 0x60], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x68], ecx
mov dword [ebx + 0x6c], 0
test eax, eax
je 0x424b23
test ecx, ecx
je 0x424b23
lea eax, [ebp - 0x140]
mov dword [ebx + 0x2c], 0x80000000
push eax
mov dword [ebx + 0x50], ecx
mov byte [ebx + 0x4c], 1
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x4b8]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push dword [ebp - 0x4b4]
push dword [ebp - 0x4b8]
call fcn.004239f0
mov ecx, edx
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x40], eax
movzx eax, word [ebp - 0x4a8]
mov dword [ebx + 0x44], ecx
movzx ecx, word [ebp - 0x4ac]
jmp 0x424beb
mov esi, 0x10000
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 4
jne 0x42518f
lea eax, [ebp - 0x140]
mov dword [ebx + 0x5c], 0
push eax
mov dword [ebx + 0x64], 0
mov byte [ebx + 0x60], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x2c], 0x41c00010
mov dword [ebx + 0x50], 0
mov byte [ebx + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x4b8]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push dword [ebp - 0x4b4]
push dword [ebp - 0x4b8]
call fcn.004239f0
mov ecx, edx
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x40], eax
movzx eax, word [ebp - 0x4ac]
mov dword [ebx + 0x44], ecx
movzx ecx, word [ebp - 0x4a8]
shl ecx, 0x10
add esp, 8
or ecx, eax
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x48], ecx
mov dword [ebp - 0x144], 0
xor ecx, ecx
mov byte [ebp - 0x468], 0
nop dword [eax]
mov al, byte [ebp + ecx - 0x130]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x359], al
test al, al
jne 0x424c10
lea ecx, [ebp - 0x358]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x424c30
sub ecx, edx
mov dword [ebp - 0x488], ecx
cmp byte [ebp - 0x4a1], al
je 0x424c6f
lea edi, [ebp - 0x358]
dec edi
nop
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x424c50
mov ax, word [0x4a1fac]
mov word [edi], ax
inc dword [ebp - 0x488]
mov edi, dword [ebp - 0x4b0]
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x498], eax
mov eax, 8
mov word [ebp - 0x49c], ax
movzx eax, di
mov word [ebp - 0x49a], ax
mov ecx, eax
mov byte [ebp - 0x254], 0
lea eax, [ebx + 0x50]
mov dword [ebp - 0x35c], 0
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x150], 1
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x476], 0x80000
mov dword [ebp - 0x4a0], 0x140b17
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x4b4], ecx
test edi, edi
jne 0x424cfe
mov ecx, dword [eax]
mov dword [ebp - 0x4a8], eax
test ecx, ecx
js 0x424cfe
mov dword [ebp - 0x490], ecx
jmp 0x424d0e
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x4a8], eax
mov eax, dword [eax]
mov dword [ebp - 0x48c], eax
xor eax, eax
mov word [ebp - 0x478], ax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x470], eax
mov eax, dword [ebx + 8]
add eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x3c]
mov dword [ebp - 0x46c], eax
lea eax, [ebp - 0x18]
mov ecx, dword [ebx + 0x38]
mov dword [ebp - 0x364], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x360], eax
mov al, byte [ebx + 0x38]
mov byte [ebp - 0x13], al
mov eax, edx
shrd ecx, eax, 8
mov eax, edx
mov dword [ebp - 0x18], 0xd5455
mov byte [ebp - 0x12], cl
mov ecx, dword [ebx + 0x38]
shrd ecx, eax, 0x10
mov eax, dword [ebx + 0x38]
shrd eax, edx, 0x18
mov edx, dword [ebx + 0x34]
mov dword [ebp - 0x4ac], eax
mov byte [ebp - 0x10], al
mov al, byte [ebx + 0x30]
mov byte [ebp - 0xf], al
mov eax, edx
mov byte [ebp - 0x11], cl
mov ecx, dword [ebx + 0x30]
shrd ecx, eax, 8
mov eax, edx
mov byte [ebp - 0x14], 7
mov byte [ebp - 0xe], cl
mov ecx, dword [ebx + 0x30]
shrd ecx, eax, 0x10
mov eax, dword [ebx + 0x30]
movq xmm0, qword [ebp - 0x18]
shrd eax, edx, 0x18
mov edx, dword [ebx + 0x44]
mov byte [ebp - 0xc], al
mov al, byte [ebx + 0x40]
mov byte [ebp - 0xb], al
mov eax, edx
mov byte [ebp - 0xd], cl
mov ecx, dword [ebx + 0x40]
shrd ecx, eax, 8
mov eax, edx
movq qword [ebp - 0x24], xmm0
mov byte [ebp - 0xa], cl
mov ecx, dword [ebx + 0x40]
shrd ecx, eax, 0x10
mov eax, dword [ebx + 0x40]
shrd eax, edx, 0x18
mov byte [ebp - 9], cl
lea ecx, [ebp - 0x4a0]
mov byte [ebp - 8], al
mov eax, dword [ebp - 0x4ac]
push ebx
mov dword [ebp - 0x484], 0x11
mov dword [ebp - 0x480], 9
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x22], 5
call fcn.00422f10
add esp, 4
test eax, eax
je 0x424e54
cmp byte [ebx + 0x60], 0
je 0x424e2a
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x424e2a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x4a8]
mov eax, dword [ebx + 0x54]
mov dword [ebx + 0x5c], 0
mov dword [ecx], eax
mov eax, 0x400
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x484]
add eax, 0x1e
add eax, dword [ebp - 0x488]
add dword [ebx + 0x10], eax
cmp dword [ebx + 0xc], 0
je 0x424ea8
cmp byte [ebx + 0x60], 0
je 0x424e80
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x424e80
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x4a8]
mov eax, dword [ebx + 0x54]
mov dword [ebx + 0x5c], 0
mov dword [ecx], eax
mov eax, dword [ebx + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 4
je 0x424f93
cmp edi, 8
jne 0x424ecc
lea eax, [ebp - 0x4a0]
mov ecx, ebx
push eax
call fcn.00424260
mov esi, eax
jmp 0x424f9c
test edi, edi
jne 0x424f9a
xor eax, eax
lea edi, [ebx + 0x74]
mov dword [ebp - 0x4ac], eax
mov ecx, dword [ebx + 0x64]
mov edx, 0x4000
test ecx, ecx
je 0x424f12
mov eax, dword [ebx + 0x6c]
mov esi, dword [ebx + 0x68]
cmp eax, esi
jae 0x424f82
sub esi, eax
cmp esi, edx
cmova esi, edx
add eax, ecx
push esi
push eax
push edi
call fcn.004599b0
add esp, 0xc
add dword [ebx + 0x6c], esi
jmp 0x424f39
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x424f7b
push 0
lea ecx, [ebp - 0x4bc]
push ecx
push 0x4000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424f82
mov esi, dword [ebp - 0x4bc]
mov ecx, dword [ebx + 0x58]
mov edx, edi
add dword [ebx + 0x54], esi
push esi
call fcn.004238f0
add esp, 4
mov dword [ebx + 0x58], eax
test esi, esi
je 0x424f82
cmp esi, 0xffffffff
je 0x424f82
push esi
push edi
mov ecx, ebx
call fcn.00423ed0
cmp eax, esi
jne 0x424f6e
add dword [ebp - 0x4ac], esi
jmp 0x424edf
mov edi, dword [ebp - 0x4b0]
mov esi, 0x60000
jmp 0x424f9c
mov dword [ebx + 0xc], 0x1000000
mov eax, dword [ebp - 0x4ac]
mov edi, dword [ebp - 0x4b0]
mov dword [ebx + 0x70], eax
jmp 0x424f9a
mov dword [ebx + 0x70], 0
xor esi, esi
cmp byte [ebx + 0x60], 0
je 0x424fb0
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x424fb0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x4a8]
mov edx, dword [ebx + 0x54]
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x5c], 0
mov dword [ecx], edx
mov ecx, dword [ebx + 0x70]
add dword [ebx + 0x10], ecx
test eax, eax
jne 0x425194
test esi, esi
jne 0x424e3c
cmp dword [ebp - 0x490], ecx
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x494], eax
sete byte [ebp - 0x4a1]
cmp byte [ebx + 0x14], 0
mov eax, dword [ebp - 0x4b4]
mov dword [ebp - 0x490], ecx
mov dword [ebp - 0x48c], edx
movzx eax, ax
je 0x425086
mov word [ebp - 0x49a], ax
mov ax, word [ebp - 0x49c]
test al, 1
jne 0x42502d
mov ecx, 0xfff7
and ax, cx
mov word [ebp - 0x49c], ax
mov word [ebp - 0x474], ax
mov ecx, ebx
mov eax, dword [ebp - 0x46c]
sub eax, dword [ebx + 8]
push eax
call fcn.00423fd0
test al, al
je 0x42506e
push ebx
lea ecx, [ebp - 0x4a0]
call fcn.00422f10
add esp, 4
test eax, eax
jne 0x424e3c
push dword [ebx + 0x10]
mov ecx, ebx
call fcn.00423fd0
test al, al
jne 0x4250cd
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret 0x10
cmp word [ebp - 0x49a], ax
jne 0x425177
test edi, edi
jne 0x4250a4
cmp byte [ebp - 0x4a1], 0
je 0x425177
push ebx
lea ecx, [ebp - 0x4a0]
call fcn.004231d0
add esp, 4
test eax, eax
jne 0x424e3c
mov ax, word [ebp - 0x474]
add dword [ebx + 0x10], 0x10
mov word [ebp - 0x49c], ax
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x425194
push dword [ebp - 0x480]
call fcn.0045742e
add esp, 4
mov esi, eax
push dword [ebp - 0x480]
push dword [ebp - 0x360]
push esi
call fcn.004599b0
add esp, 0xc
mov dword [ebp - 0x360], esi
push 0x360
call fcn.00456c8d
mov edx, eax
lea esi, [ebp - 0x4a0]
mov ecx, 0xd8
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x28]
add esp, 4
test ecx, ecx
jne 0x425140
mov dword [ebx + 0x28], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ecx + 0x35c]
test eax, eax
je 0x42515c
nop word [eax + eax]
mov ecx, eax
mov eax, dword [ecx + 0x35c]
test eax, eax
jne 0x425150
mov dword [ecx + 0x35c], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x4000000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x10000
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457138
mov esp, ebp
pop ebp
ret 0x10