Function at 0x403e80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x20], ecx
push 1
push 0x200000
call fcn.0043d9d6
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x44], eax
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push 0x200000
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
movzx eax, word [edx + 0x1dffde]
cmp eax, 0xffff
je 0x403f8c
mov dword [ebp - 0xc], 0x30000
mov dword [ebp - 0x18], 0x1dffdd
mov dword [ebp - 8], 0x1dffde
xor ecx, ecx
mov word [ebp - 0x10], cx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
jmp 0x403f0e
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x18]
jae 0x403f42
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x44]
mov ecx, dword [ebp - 4]
movzx edx, byte [eax + ecx]
shl edx, 8
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x44]
mov eax, dword [ebp - 4]
movzx ecx, byte [ecx + eax + 1]
add edx, ecx
movzx eax, word [ebp - 0x10]
add eax, edx
mov word [ebp - 0x10], ax
jmp 0x403f05
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
mov eax, dword [ebp - 8]
movzx ecx, byte [edx + eax]
movzx edx, word [ebp - 0x10]
shr edx, 8
and edx, 0xff
movzx eax, dl
cmp ecx, eax
jne 0x403f8c
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
mov eax, dword [ebp - 8]
movzx ecx, byte [edx + eax + 1]
movzx edx, word [ebp - 0x10]
and edx, 0xff
movzx eax, dl
cmp ecx, eax
jne 0x403f8c
mov eax, 1
jmp 0x404138
mov dword [ebp - 0xc], 0x30000
mov dword [ebp - 0x18], 0x3fff0
mov dword [ebp - 8], 0x1dfffe
xor ecx, ecx
mov word [ebp - 0x10], cx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
jmp 0x403fba
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1e0000
jae 0x40400d
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
jmp 0x403fd4
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
add eax, 0x10
cmp dword [ebp - 0x14], eax
jae 0x40400b
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
mov eax, dword [ebp - 0x14]
movzx ecx, byte [edx + eax]
shl ecx, 8
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x44]
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + edx + 1]
add ecx, eax
movzx edx, word [ebp - 0x10]
add edx, ecx
mov word [ebp - 0x10], dx
jmp 0x403fcb
jmp 0x403faf
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jmp 0x404021
mov ecx, dword [ebp - 4]
add ecx, 0x10000
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x1d0000
jae 0x404074
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x40403b
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
add ecx, 0x10
cmp dword [ebp - 0x14], ecx
jae 0x404072
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x44]
mov ecx, dword [ebp - 0x14]
movzx edx, byte [eax + ecx]
shl edx, 8
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x44]
mov eax, dword [ebp - 0x14]
movzx ecx, byte [ecx + eax + 1]
add edx, ecx
movzx eax, word [ebp - 0x10]
add eax, edx
mov word [ebp - 0x10], ax
jmp 0x404032
jmp 0x404015
mov dword [ebp - 0x14], 0x1dffee
jmp 0x404086
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0x1dfffe
jae 0x4040bb
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x44]
mov ecx, dword [ebp - 0x14]
movzx edx, byte [eax + ecx]
shl edx, 8
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x44]
mov eax, dword [ebp - 0x14]
movzx ecx, byte [ecx + eax + 1]
add edx, ecx
movzx eax, word [ebp - 0x10]
add eax, edx
mov word [ebp - 0x10], ax
jmp 0x40407d
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
mov eax, dword [ebp - 8]
movzx ecx, byte [edx + eax]
movzx edx, word [ebp - 0x10]
shr edx, 8
and edx, 0xff
movzx eax, dl
cmp ecx, eax
jne 0x404102
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
mov eax, dword [ebp - 8]
movzx ecx, byte [edx + eax + 1]
movzx edx, word [ebp - 0x10]
and edx, 0xff
movzx eax, dl
cmp ecx, eax
jne 0x404102
mov eax, 1
jmp 0x404138
push 0x25
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Invalid_F_W___Checksum_is_NOT_matched___
call fcn.00404bd0
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x54
call fcn.00406580
mov ecx, dword [ebp - 0x20]
add ecx, 0x54
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x54]
mov edx, dword [eax + 0x14c]
call edx
xor eax, eax
mov esp, ebp
pop ebp
ret 4