Function at 0x402cc0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0xf130cc]
sub esp, 0x1d0
test eax, eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x402cf9
mov eax, dword [esp + 0x1e8]
mov ecx, dword [esp + 0x1e4]
push eax
push ecx
mov ecx, esi
call fcn.00402f60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret 8
mov ebx, dword [esp + 0x1e4]
lea eax, [esi + 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
mov eax, 1
je 0x402f42
cmp dword [esi], eax
jne 0x402d34
cmp dword [esp + 0x1e8], eax
jne 0x402d34
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1d0
ret 8
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x58]
push ebx
push edx
mov dword [esp + 0x1c], eax
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x58]
push 0x41a0e0
push eax
call edi
lea ecx, [esp + 0x158]
push 0
lea edx, [esp + 0x5c]
push ecx
push edx
call sub.LZ32.dll_LZOpenFileA
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x402deb
lea eax, [esp + 0x58]
push ebx
push eax
call ebp
lea ecx, [esp + 0x58]
push 0x41a0e8
push ecx
call edi
push 0
push 0x80
push 3
push 0
push 0
lea edx, [esp + 0x6c]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x402dcc
mov eax, dword [esp + 0x1e8]
mov ecx, esi
push eax
push ebx
call fcn.00402f60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret 8
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x28]
push 0x38
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x14], 0
jmp 0x402df8
lea ecx, [esp + 0x20]
push 0x38
push ecx
push eax
call sub.LZ32.dll_LZRead
mov eax, dword [esp + 0x54]
mov edx, dword [0x41a0f0]
mov ecx, dword [esp + 0x50]
and eax, 0xff
add eax, edx
mov edx, dword [esp + 0x4c]
lea edi, [ecx + eax]
lea ebp, [edx + eax]
mov eax, dword [esi]
mov ebx, edi
imul ebx, ebp
cmp eax, 1
jne 0x402e5a
mov ecx, dword [esp + 0x1e8]
test ecx, ecx
je 0x402e43
cmp ecx, 3
jne 0x402e5a
cmp ebp, dword [esi + 0x104]
jg 0x402e43
cmp edi, dword [esi + 0x108]
jle 0x402e5a
mov edx, dword [esi + 0x10c]
push edx
call fcn.00410bcc
add esp, 4
mov dword [esi], 0
jmp 0x402e5e
test eax, eax
jne 0x402e92
lea eax, [ebx + ebx]
mov byte [esi + 4], 0
push eax
call fcn.00410bd7
mov ecx, dword [esp + 0x1e8]
add esp, 4
mov dword [esi + 0x10c], eax
lea eax, [esi + 4]
push ecx
push eax
mov dword [esi + 0x104], ebp
mov dword [esi + 0x108], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [esp + 0x1e8], 2
jne 0x402ebb
cmp ebp, dword [esi + 0x104]
jg 0x402eac
cmp edi, dword [esi + 0x108]
jle 0x402ebb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1d0
ret 8
mov eax, dword [esp + 0x14]
xor ebx, ebx
cmp eax, 1
jne 0x402efb
test edi, edi
jle 0x402eef
add ebp, ebp
mov edx, dword [esi + 0x104]
mov eax, dword [esi + 0x10c]
imul edx, ebx
push ebp
lea ecx, [eax + edx*2]
mov edx, dword [esp + 0x14]
push ecx
push edx
call sub.LZ32.dll_LZRead
inc ebx
cmp ebx, edi
jl 0x402ecc
mov eax, dword [esp + 0x10]
push eax
call sub.LZ32.dll_LZClose
jmp 0x402f37
test edi, edi
jle 0x402f2c
add ebp, ebp
mov edx, dword [esi + 0x104]
mov eax, dword [esi + 0x10c]
imul edx, ebx
lea ecx, [esp + 0x1c]
push 0
push ecx
lea ecx, [eax + edx*2]
mov edx, dword [esp + 0x20]
push ebp
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
inc ebx
cmp ebx, edi
jl 0x402f01
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 1
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret 8