Function at 0x406d00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3b8
mov eax, dword [0x440388]
xor eax, esp
mov dword [esp + 0x3b4], eax
mov eax, dword [esp + 0x3bc]
push ebx
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
call fcn.004238a0
mov esi, eax
xor ebx, ebx
cmp byte [esi + 0x441], bl
je 0x406d74
mov ecx, dword [esi + 0x43c]
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
test al, al
je 0x406d74
mov ecx, dword [esi + 0x43c]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0xac]
mov ecx, dword [esi + 0x43c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
push eax
mov eax, dword [esi + 0xc8]
push eax
call edx
jmp 0x406d97
mov ecx, dword [esi + 0xb0]
mov edx, dword [esi + 0xc8]
push ebx
lea eax, [esp + 0x14]
push eax
push ecx
push edx
push edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esi + 0xc4], eax
jne 0x406dbc
lea ecx, [esp + 0x1c]
push ecx
push 0x2d
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0xd8], ebx
call fcn.00402910
add esp, 0xc
mov eax, dword [esi + 0xc8]
or edi, 0xffffffff
add dword [esi + 0xc4], edi
mov dword [esi + 0xc0], eax
js 0x406de3
movzx ecx, byte [eax]
add eax, 1
cmp ecx, ebx
mov dword [esi + 0xc0], eax
je 0x406dfe
lea edx, [esp + 0x1c]
push edx
push 0x2d
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0xd8], ebx
call fcn.00402910
add esp, 0xc
add dword [esi + 0xc4], edi
mov edx, dword [esi + 0xc4]
js 0x4071e2
mov ecx, dword [esi + 0xc0]
movzx eax, byte [ecx]
add ecx, 1
cmp eax, ebx
mov dword [esi + 0xc0], ecx
je 0x4071c7
lea ebx, [ebx]
lea ecx, [eax - 1]
cmp ecx, 7
ja case.0x406e3c.3
jmp dword [ecx*4 + 0x4071ec]
call fcn.00406cd0
cmp byte [esp + 0x3d0], bl
je 0x40719e
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
jmp 0x40719e
call fcn.00406cd0
cmp byte [esp + 0x3d0], bl
je 0x40719e
cmp eax, ebx
setne dl
mov byte [esi + 0x40], dl
jmp 0x40719e
lea eax, [edx - 1]
cmp eax, ebx
mov dword [esi + 0xc4], eax
jl 0x406ea0
mov eax, dword [esi + 0xc0]
movzx edx, byte [eax]
add eax, 1
mov dword [esi + 0xc0], eax
jmp 0x406ea5
mov edx, 0xff
cmp byte [esp + 0x3d0], bl
je 0x406eb8
lea edi, [esi + 0x1c]
mov ebp, 0x1d
jmp 0x406ec4
lea edi, [esp + 0x2c4]
mov ebp, 0xff
cmp edx, ebx
je 0x406f29
jmp 0x406ed0
add dword [esi + 0xc4], 0xffffffff
js 0x406eed
mov ecx, dword [esi + 0xc0]
movzx eax, byte [ecx]
add ecx, 1
mov dword [esi + 0xc0], ecx
jmp 0x406ef2
mov eax, 0xff
mov byte [edi], al
add edi, 1
sub edx, 1
je 0x406f01
sub ebp, 1
jne 0x406ed0
cmp edx, ebx
jle 0x406f29
cmp ebp, ebx
jne 0x406f29
mov eax, dword [esi + 0xc4]
nop
sub edx, 1
sub eax, 1
js 0x406f1f
add dword [esi + 0xc0], 1
cmp edx, ebx
jne 0x406f10
mov dword [esi + 0xc4], eax
cmp byte [esp + 0x3d0], bl
mov byte [edi], bl
jne 0x40719e
lea ecx, [esi + 0x1c]
lea eax, [esp + 0x2c4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406f62
cmp dl, bl
je 0x406f5e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406f62
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x406f42
xor eax, eax
jmp 0x406f67
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40719e
lea eax, [esp + 0x2c4]
push eax
add esi, 0x1c
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0xd4], ebx
call fcn.0042bde0
mov ecx, eax
call fcn.0042bde0
push eax
lea ecx, [esp + 0x248]
push ecx
push 0xe6
call fcn.004015b0
lea edx, [esp + 0x250]
push edx
push 0x433f6c
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 0x14
xor al, al
jmp 0x4071c9
lea eax, [edx - 1]
cmp eax, ebx
mov dword [esi + 0xc4], eax
jl 0x406fe7
mov eax, dword [esi + 0xc0]
movzx edx, byte [eax]
add eax, 1
mov dword [esi + 0xc0], eax
jmp 0x406fec
mov edx, 0xff
cmp byte [esp + 0x3d0], bl
mov ebp, 0xff
lea edi, [esi + 0xd8]
jne 0x407007
lea edi, [esp + 0x2c4]
cmp edx, ebx
je 0x407069
jmp 0x407010
add dword [esi + 0xc4], 0xffffffff
js 0x40702d
mov ecx, dword [esi + 0xc0]
movzx eax, byte [ecx]
add ecx, 1
mov dword [esi + 0xc0], ecx
jmp 0x407032
mov eax, 0xff
mov byte [edi], al
add edi, 1
sub edx, 1
je 0x407041
sub ebp, 1
jne 0x407010
cmp edx, ebx
jle 0x407069
cmp ebp, ebx
jne 0x407069
mov eax, dword [esi + 0xc4]
nop
sub edx, 1
sub eax, 1
js 0x40705f
add dword [esi + 0xc0], 1
cmp edx, ebx
jne 0x407050
mov dword [esi + 0xc4], eax
cmp byte [esp + 0x3d0], bl
mov byte [edi], bl
jne 0x4070fc
mov ecx, dword [esi + 0x18]
lea eax, [esp + 0x2c4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4070a2
cmp dl, bl
je 0x40709e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4070a2
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x407082
xor eax, eax
jmp 0x4070a7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40719e
mov ecx, dword [esi + 0x18]
lea eax, [esp + 0x2c4]
push eax
push ecx
lea ecx, [esp + 0x194]
mov dword [esp + 0x194], ebx
mov dword [esp + 0x244], ebx
call fcn.0042bde0
mov ecx, eax
call fcn.0042bde0
push eax
lea edx, [esp + 0x248]
push edx
push 0xe7
call fcn.004015b0
lea eax, [esp + 0x250]
push eax
jmp 0x406fb1
lea eax, [esi + 0xd8]
mov dword [esi + 0x18], eax
jmp 0x40719e
call fcn.00406cd0
cmp byte [esp + 0x3d0], bl
je 0x40719e
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
jmp 0x40719e
call fcn.00406cd0
cmp byte [esp + 0x3d0], bl
je 0x40719e
cmp eax, ebx
setne dl
mov byte [esi + 0x42], dl
jmp 0x40719e
call fcn.00406cd0
cmp eax, dword [esi + 0x2d8]
je 0x40719e
mov ecx, dword [esi + 0x2d8]
push eax
push ecx
lea ecx, [esp + 0xdc]
mov dword [esp + 0xdc], ebx
mov dword [esp + 0x18c], ebx
call fcn.0042bc50
mov ecx, eax
call fcn.0042bc50
push eax
lea edx, [esp + 0x248]
push edx
push 0xe8
call fcn.004015b0
lea eax, [esp + 0x250]
push eax
jmp 0x406fb1
push 0x3b
push eax
call fcn.004063b0
add esp, 8
add dword [esi + 0xc4], 0xffffffff
mov edx, dword [esi + 0xc4]
js 0x4071e2
mov ecx, dword [esi + 0xc0]
movzx eax, byte [ecx]
add ecx, 1
cmp eax, ebx
mov dword [esi + 0xc0], ecx
jne 0x406e30
mov al, 1
mov ecx, dword [esp + 0x3c4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00430baf
add esp, 0x3b8
ret
mov eax, 0xff
jmp 0x406e30