Function at 0x405340
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x5cc
mov dword [esp], 0
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
call fcn.00413290
sub esp, 4
mov esi, eax
call fcn.00407370
test ebx, ebx
mov ebp, eax
je 0x4054d0
mov eax, dword [edi]
lea ebx, [esp + 0xbc]
mov dword [esp + 8], 0x41c500
mov dword [esp + 4], 0x103
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call dword [sym.imp.msvcrt.dll__snprintf]
mov dword [esp], ebx
mov byte [esp + 0x1bf], 0
call fcn.004137b0
mov dword [esp], ebx
mov dword [esp + 4], 0x41c503
call sub.msvcrt.dll_fopen
test eax, eax
mov ebx, eax
je 0x405620
mov dword [esp + 4], 0
mov dword [esp], ebp
call fcn.004071d0
mov dword [esp + 4], 0xff000000
mov dword [esp], ebp
call fcn.00406d50
mov dword [esp], ebx
call sub.msvcrt.dll_fgetc
movzx eax, al
cmp eax, 0xfd
je 0x4054f3
cmp eax, 0xfe
je 0x405440
cmp eax, 0x42
mov esi, 3
je 0x405535
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call fcn.00413200
sub esp, 4
mov dword [esp], esi
call fcn.00413290
sub esp, 4
mov esi, eax
add esp, 0x5cc
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call sub.msvcrt.dll_fgetc
mov dword [esp], ebx
mov dword [esp + 0x28], eax
call sub.msvcrt.dll_fgetc
mov dword [esp], ebx
mov dword [esp + 0x2c], eax
call sub.msvcrt.dll_fgetc
mov edx, dword [esp + 0x2c]
shl eax, 0x10
mov dword [esp], ebx
shl edx, 8
or eax, edx
or eax, dword [esp + 0x28]
mov dword [esp + 0x28], eax
call sub.msvcrt.dll_fgetc
mov edx, dword [esp + 0x28]
shl eax, 0x18
or edx, eax
test esi, esi
jne 0x405411
mov eax, dword [esp + 0x20]
test eax, eax
je 0x405650
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
jne 0x405411
mov dword [esp], ebx
call sub.msvcrt.dll_feof
test eax, eax
mov eax, 3
cmove esi, eax
jmp 0x405411
mov eax, dword [0x423194]
test eax, eax
jne 0x405376
mov dword [esp], 1
call fcn.00413290
sub esp, 4
mov esi, eax
jmp 0x405431
mov dword [esp], ebx
call sub.msvcrt.dll_fgetc
mov dword [esp], ebx
call sub.msvcrt.dll_fgetc
mov dword [esp], ebx
call sub.msvcrt.dll_fgetc
mov dword [esp], ebx
call sub.msvcrt.dll_fgetc
mov dword [esp], ebx
call sub.msvcrt.dll_fgetc
mov dword [esp], ebx
mov dword [esp + 0x28], eax
call sub.msvcrt.dll_fgetc
mov edx, dword [esp + 0x28]
shl eax, 8
or edx, eax
jmp 0x405485
mov dword [esp], ebx
mov esi, 1
call sub.msvcrt.dll_rewind
mov dword [esp], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
call fcn.00413290
sub esp, 4
mov dword [esp + 0x28], eax
mov eax, dword [0x423194]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
test eax, eax
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xb8], 0
je 0x4055fb
lea eax, [esp + 0x52]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
jne 0x405781
mov esi, 3
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call fcn.00413200
sub esp, 4
mov eax, esi
add esp, 0x5cc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call fcn.00413200
sub esp, 4
mov dword [esp], 2
call fcn.00413290
sub esp, 4
mov esi, eax
add esp, 0x5cc
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x20], edx
call fcn.00403060
mov eax, dword [0x423194]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov edx, dword [esp + 0x20]
mov ecx, dword [eax + 0x28]
imul ecx, dword [eax + 0x1c]
cmp edx, ecx
mov eax, ecx
cmovbe eax, edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x405cd0
mov eax, dword [0x423194]
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
cmp dword [eax + 0x14], ecx
je 0x405d05
mov dword [esp], ebx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x405765
mov ecx, dword [esp + 0x24]
mov eax, dword [0x423194]
test ecx, ecx
je 0x405ce7
mov ecx, dword [eax + 0x20]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x20], ecx
jle 0x405765
xor edx, edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
mov ebp, edx
jmp 0x40570e
mov eax, dword [esp + 0x20]
mov dword [eax + ebp*4], edi
mov eax, dword [0x423194]
add ebp, 1
mov ecx, dword [eax + 0x20]
mov eax, 1
shl eax, cl
cmp eax, ebp
jle 0x405750
mov dword [esp], ebx
call sub.msvcrt.dll_fgetc
mov dword [esp], ebx
mov esi, eax
call sub.msvcrt.dll_fgetc
mov dword [esp], ebx
mov edi, eax
call sub.msvcrt.dll_fgetc
mov edx, dword [esp + 0x24]
shl edi, 8
shl eax, 0x10
or edi, eax
or edi, esi
test edx, edx
jne 0x4056f1
shl edi, 2
and edi, 0xfcfcfc
jmp 0x4056f1
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
test eax, eax
jne 0x405765
call fcn.0040b770
mov dword [esp + 4], 0
mov dword [esp], 1
call fcn.004030b0
sub esp, 8
jmp 0x405411
lea eax, [esp + 0x60]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
lea eax, [esp + 0x54]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
lea eax, [esp + 0x56]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
lea eax, [esp + 0x64]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
lea eax, [esp + 0x68]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
mov eax, dword [esp + 0x68]
cmp eax, 0x38
je 0x40586a
ja 0x406268
cmp eax, 0xc
je 0x4061b1
cmp eax, 0x28
jne 0x4055f6
lea eax, [esp + 0x6c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
lea eax, [esp + 0x70]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
lea eax, [esp + 0x5e]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
cmp dword [esp + 0x68], 0x13
ja 0x40607a
cmp word [esp + 0x52], 0x4d42
jne 0x4055f6
cmp word [esp + 0x5c], 1
ja 0x4055f6
cmp dword [esp + 0x6c], 0
jle 0x4055f6
mov eax, dword [esp + 0x70]
test eax, eax
je 0x4055f6
mov edx, dword [esp + 0x74]
cmp edx, 3
ja 0x4055f6
test eax, eax
mov dword [esp + 0x38], 0
js 0x40605a
cmp dword [esp + 0x64], 0
mov eax, dword [esp + 0x68]
jne 0x40598c
movzx ecx, word [esp + 0x5e]
lea esi, [eax + 0xe]
mov dword [esp + 0x64], esi
cmp cx, 8
ja 0x40598c
mov edx, 1
shl edx, cl
add esi, edx
mov dword [esp + 0x64], esi
add eax, 0xe
mov dword [esp + 8], 0
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fseek
movzx ecx, word [esp + 0x5e]
mov dword [esp + 0x3c], 0
cmp cx, 8
ja 0x405a3b
xor eax, eax
cmp dword [esp + 0x68], 0xc
mov dword [esp + 0x30], edi
setne al
xor edx, edx
add eax, 3
mov edi, edx
mov dword [esp + 0x2c], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x3c], eax
mov dword [esp], ebx
call sub.msvcrt.dll_fgetc
mov dword [esp], ebx
mov esi, eax
shl esi, 0x10
call sub.msvcrt.dll_fgetc
shl eax, 8
mov dword [esp], ebx
or esi, eax
call sub.msvcrt.dll_fgetc
or eax, esi
cmp dword [esp + 0x24], 0
mov dword [esp + edi*4 + 0x1c0], eax
je 0x405a1f
sar eax, 2
and eax, 0x3f3f3f
mov dword [esp + edi*4 + 0x1c0], eax
cmp dword [esp + 0x2c], 4
jne 0x405a2e
mov dword [esp], ebx
call sub.msvcrt.dll_fgetc
add edi, 1
cmp edi, dword [esp + 0x3c]
jne 0x4059de
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x40], eax
jne 0x405a53
mov eax, dword [0x423194]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4062a9
cmp dword [eax], 7
je 0x40627f
mov eax, dword [esp + 0x20]
movzx eax, byte [eax]
mov edx, eax
and edx, 7
lea ecx, [edx - 1]
cmp ecx, 1
jbe 0x4062d6
cmp edx, 4
je 0x4062d6
cmp dword [esp + 0x5e0], 0
je 0x405ff0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x6c]
mov dword [eax], 7
mov esi, ecx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x30], ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov eax, esi
mov dword [esp + 0x34], ecx
imul eax, edx
mov ecx, dword [esp + 0x20]
add eax, 0xf
and eax, 0xfffffff0
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [esp], ebp
mov dword [esp + 0x44], edx
mov dword [esp + 4], eax
call fcn.004071d0
mov dword [esp + 4], 0xff000000
mov dword [esp], ebp
call fcn.00406d50
movzx ecx, word [esp + 0x5e]
xor edx, edx
cmp cx, 7
mov eax, ecx
cmova ecx, edx
cmp dword [esp + 0x74], 3
mov edx, dword [esp + 0x44]
mov dword [esp + 0x2c], ecx
je 0x405efd
cmp ax, 0x10
ja 0x405ecc
mov dword [esp + 0xac], 0x7c00
mov dword [esp + 0xb0], 0x3e0
mov dword [esp + 0xb4], 0x1f
cmp ax, 8
ja 0x405d25
sub edx, 1
mov dword [esp + 0x20], 0
cmp edx, 3
ja 0x405b68
mov eax, dword [edx*4 + 0x41c508]
mov dword [esp + 0x20], eax
lea esi, [esp + 0xac]
xor eax, eax
mov edx, dword [esi + eax*4]
test edx, edx
mov dword [esp + eax*4 + 0x8c], edx
jne 0x405eac
add eax, 1
cmp eax, 4
jne 0x405b71
call fcn.00403060
mov eax, dword [esp + 0x3c]
shl eax, 2
mov dword [esp + 8], eax
lea eax, [esp + 0x1c0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [0x41b308]
cmp dword [esp + 0x24], 0
jne 0x405bbf
call fcn.0040b770
movzx esi, word [esp + 0x5e]
mov eax, dword [esp + 0x6c]
add esi, 7
sar esi, 3
imul eax, esi
add eax, 3
and eax, 0xfffffffc
mov dword [esp + 0x44], eax
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
cmp eax, 1
je 0x405e93
cmp eax, 4
jne 0x405d54
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x2c]
add eax, 1
sar eax, 1
and eax, 3
sub ecx, eax
mov eax, ecx
and eax, 3
mov dword [esp + 8], 0
mov dword [esp], ebx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
call sub.msvcrt.dll_fseek
xor edx, edx
cmp dword [esp + 0x38], 0
jne 0x405c45
mov eax, dword [esp + 0x70]
sub eax, 1
mov edx, eax
mov eax, 8
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], edi
mov ebp, edx
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x38], 0
je 0x405e87
cmp ebp, dword [esp + 0x70]
setl al
test al, al
je 0x405e7a
cmp dword [esp + 0x2c], 0
je 0x405df6
xor esi, esi
xor edi, edi
cmp edi, dword [esp + 0x6c]
jge 0x405de1
mov eax, 8
cdq
idiv dword [esp + 0x2c]
mov ecx, eax
mov eax, edi
cdq
idiv ecx
test edx, edx
je 0x405d6a
movzx ecx, byte [esp + 0x4c]
mov eax, esi
sar eax, cl
mov ecx, dword [esp + 0x24]
mov byte [ecx + edi], al
movzx ecx, byte [esp + 0x2c]
mov eax, esi
add edi, 1
shl eax, cl
movzx esi, al
jmp 0x405c85
mov dword [esp], ebx
call sub.msvcrt.dll_feof
test eax, eax
mov eax, 3
cmove esi, eax
jmp 0x405695
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x20]
mov eax, 1
shl eax, cl
test eax, eax
jg 0x4056e3
jmp 0x405760
mov edx, dword [eax + 0x1c]
mov dword [esp + 4], 1
mov dword [esp + 8], edx
mov eax, dword [eax + 0x38]
mov dword [esp], eax
call dword [0x41b304]
jmp 0x4056a8
cmp ax, 0x10
ja 0x405f8b
cmp edx, 2
je 0x405f7e
jle 0x405f63
cmp edx, 4
jg 0x405f71
mov dword [esp + 0x20], 0x404c50
jmp 0x405b68
mov edx, dword [esp + 0x6c]
mov eax, 4
imul edx, esi
and edx, 3
sub eax, edx
jmp 0x405c14
mov dword [esp], ebx
call sub.msvcrt.dll_fgetc
test eax, eax
mov esi, eax
jns 0x405ca8
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x28], 3
mov eax, dword [0x423194]
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
cmp dword [eax + 0x14], ecx
jne 0x405db6
mov edx, dword [eax + 0x1c]
mov dword [esp + 4], 1
mov dword [esp + 8], edx
mov eax, dword [eax + 0x38]
mov dword [esp], eax
call dword [0x41b304]
mov dword [esp + 4], 0
mov dword [esp], 1
call fcn.004030b0
push eax
push eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov esi, dword [esp + 0x28]
jmp 0x4055fb
xor esi, esi
cmp esi, dword [esp + 0x48]
je 0x405e1e
mov dword [esp], ebx
add esi, 1
call sub.msvcrt.dll_fgetc
jmp 0x405de3
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x405d7c
cmp ebp, dword [esp + 0x34]
jge 0x405e65
lea eax, [esp + 0x9c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 8]
mov eax, dword [eax + ebp*4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
call eax
cmp dword [esp + 0x38], 0
lea eax, [ebp + 1]
lea edx, [ebp - 1]
cmove eax, edx
mov ebp, eax
jmp 0x405c5c
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
jmp 0x405d8c
mov eax, ebp
not eax
shr eax, 0x1f
jmp 0x405c6e
mov eax, dword [esp + 0x6c]
lea edx, [eax + 7]
mov eax, 4
sar edx, 3
and edx, 3
sub eax, edx
jmp 0x405c14
mov ecx, dword [esp + eax*4 + 0x8c]
test cl, 1
jne 0x405f45
shr ecx, 1
add dword [esp + eax*4 + 0x7c], 1
mov dword [esp + eax*4 + 0x8c], ecx
jmp 0x405eac
mov dword [esp + 0xac], 0xff0000
mov dword [esp + 0xb0], 0xff00
mov dword [esp + 0xb4], 0xff
mov dword [esp + 0xb8], 0xff000000
jmp 0x405b43
cmp dword [esp + 0x68], 0x37
ja 0x405b43
lea esi, [esp + 0xac]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc
mov dword [esp + 0x20], edx
mov dword [esp], esi
call sub.msvcrt.dll_fread
test eax, eax
mov edx, dword [esp + 0x20]
je 0x4055f6
movzx eax, word [esp + 0x5e]
jmp 0x405b43
mov ecx, dword [esp + eax*4 + 0x8c]
test ecx, ecx
je 0x405faa
shr ecx, 1
add dword [esp + eax*4 + 0x9c], 1
mov dword [esp + eax*4 + 0x8c], ecx
jmp 0x405f45
sub edx, 1
mov esi, 1
je 0x4055fb
mov dword [esp + 0x20], 0
jmp 0x405b68
mov dword [esp + 0x20], 0x404af0
jmp 0x405b68
cmp ax, 0x18
ja 0x405fc9
cmp edx, 2
je 0x405fbc
jle 0x405f63
cmp edx, 4
jg 0x405f71
mov dword [esp + 0x20], 0x404ef0
jmp 0x405b68
mov ecx, dword [esp + eax*4 + 0x7c]
shr edx, cl
mov dword [esp + eax*4 + 0x8c], edx
jmp 0x405b83
mov dword [esp + 0x20], 0x404d80
jmp 0x405b68
cmp ax, 0x20
ja 0x4055f6
cmp edx, 2
je 0x40630c
jle 0x405f63
cmp edx, 4
jg 0x405f71
mov dword [esp + 0x20], 0x4051a0
jmp 0x405b68
movzx esi, byte [ebp + 0x10]
and esi, 7
mov eax, esi
mov byte [esp + 0x2c], al
movzx eax, word [esp + 0x6c]
and ax, 0x1fff
movzx ecx, ax
shr ax, 5
lea edx, [ecx*8]
or edx, esi
mov esi, dword [esp + 0x20]
mov byte [esi + 1], al
mov eax, dword [esi + 4]
imul eax, dword [esi + 8]
mov byte [esi], dl
mov edx, dword [esp + 0x70]
mov word [esi + 2], dx
add eax, 0xf
and eax, 0xfffffff0
cmp ecx, dword [esp + 0x6c]
cmovg ecx, dword [esp + 0x6c]
mov dword [esi + 0x10], eax
movzx eax, dx
cmp eax, edx
cmovle edx, eax
mov dword [esp + 0x34], edx
movzx edx, byte [esp + 0x2c]
mov dword [esp + 0x30], ecx
jmp 0x405ad1
cmp edx, 3
je 0x406067
test edx, edx
jne 0x4055f6
neg eax
mov dword [esp + 0x38], 1
mov dword [esp + 0x70], eax
jmp 0x405962
lea eax, [esp + 0x74]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
cmp dword [esp + 0x68], 0x17
jbe 0x405915
lea eax, [esp + 0x78]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
cmp dword [esp + 0x68], 0x37
jbe 0x405915
mov dword [esp + 8], 1
mov dword [esp + 4], 0x10
mov dword [esp], ebx
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x4055f6
lea esi, [esp + 0xac]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], esi
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
lea eax, [esp + 0xb0]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
lea eax, [esp + 0xb4]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
lea eax, [esp + 0xb8]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
jmp 0x405915
lea eax, [esp + 0x58]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
lea eax, [esp + 0x5a]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
lea eax, [esp + 0x5e]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4055f6
movzx eax, word [esp + 0x58]
mov dword [esp + 0x6c], eax
movzx eax, word [esp + 0x5a]
mov dword [esp + 0x70], eax
jmp 0x405915
cmp eax, 0x6c
je 0x40586a
cmp eax, 0x7c
jne 0x4055f6
jmp 0x40586a
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x6c]
cmp dword [ecx + 8], eax
mov edx, dword [ecx + 4]
cmovle eax, dword [ecx + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x70]
cmp dword [ecx + 0xc], eax
cmovle eax, dword [ecx + 0xc]
mov dword [esp + 0x34], eax
jmp 0x405ad1
mov eax, dword [0x423194]
mov edx, dword [eax + 0x18]
cmp dword [esp + 0x6c], edx
cmovle edx, dword [esp + 0x6c]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x1c]
cmp dword [esp + 0x70], edx
cmovle edx, dword [esp + 0x70]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0x24]
jmp 0x405ad1
mov esi, dword [esp + 0x20]
shr al, 3
movzx eax, al
movzx ecx, byte [esi + 1]
shl ecx, 5
or eax, ecx
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
cmovle ecx, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x30], ecx
movzx ecx, word [esi + 2]
cmp ecx, eax
cmovle eax, ecx
mov dword [esp + 0x34], eax
jmp 0x405ad1
mov dword [esp + 0x20], 0x405040
jmp 0x405b68