Function at 0x403400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push edi
push 0x74
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x403506
mov eax, dword [ebp - 0x28]
add eax, 0x44
mov dword [ebp - 0x58], eax
mov cl, byte [ebp - 0x4c]
mov edx, dword [ebp - 0x58]
mov byte [edx], cl
mov eax, dword [ebp - 0x58]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x58]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x28]
add eax, 0x54
mov dword [ebp - 0x5c], eax
mov cl, byte [ebp - 0x50]
mov edx, dword [ebp - 0x5c]
mov byte [edx], cl
mov eax, dword [ebp - 0x5c]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x28]
add eax, 0x64
mov dword [ebp - 0x60], eax
mov cl, byte [ebp - 0x54]
mov edx, dword [ebp - 0x60]
mov byte [edx], cl
mov eax, dword [ebp - 0x60]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x60]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x28]
mov dword [eax], 0
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 4], 0
mov ecx, 0xa
xor eax, eax
mov edi, dword [ebp - 0x28]
add edi, 8
rep stosd dword es:[edi], eax
xor edx, edx
mov eax, dword [ebp - 0x28]
add eax, 0x30
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x94], ecx
jmp 0x403510
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
push 0x4015ac
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x403620
push 0x6e
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
je 0x40360f
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
add eax, 0x64
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x6c]
call fcn.0040ae80
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [edx + 0xc]
sub ecx, dword [eax + 4]
sar ecx, 2
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x6c]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x6c]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + 0xc], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x54
call fcn.0040a6d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
add ecx, 0x44
call fcn.0040a580
mov edx, 1
and edx, 1
test edx, edx
je 0x403604
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x98], ecx
jmp 0x403619
mov dword [ebp - 0x98], 0
xor eax, eax
jmp 0x403a31
push 0
push 0x3c
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
push 1
push 4
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
push 1
push 4
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp dword [ebp - 0x18], 0x4550
je 0x4037ef
push 0x714
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 0
je 0x4037de
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x34]
add edx, 0x64
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x78]
call fcn.0040ae80
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x78]
mov eax, dword [ecx + 0xc]
sub eax, dword [edx + 4]
sar eax, 2
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x70]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x78]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x78]
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
add ecx, 0x54
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x84]
call fcn.0040ae50
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x84]
mov eax, dword [eax + 0xc]
sub eax, dword [ecx + 4]
cdq
mov ecx, 0x18
idiv ecx
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 4]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x84]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x84]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x84]
mov dword [ecx + 0xc], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
add ecx, 0x44
call fcn.0040a580
mov edx, 1
and edx, 1
test edx, edx
je 0x4037d3
mov eax, dword [ebp - 0x34]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x9c], ecx
jmp 0x4037e8
mov dword [ebp - 0x9c], 0
xor eax, eax
jmp 0x403a31
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
push 1
push 0x14
mov ecx, dword [ebp - 0x14]
add ecx, 0x30
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
push 1
mov edx, dword [ebp - 0x14]
xor eax, eax
mov ax, word [edx + 0x40]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
jmp 0x403852
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dx, word [ecx + 0x32]
cmp dword [ebp - 0x10], edx
jge 0x4038b1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
push 1
push 0x28
mov edx, dword [ebp - 0x14]
add edx, 8
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
push 8
push 0x4015a4
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x4038af
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
jmp 0x4038b1
jmp 0x403849
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x18], 0
jne 0x4039d2
push 0x714
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4039c4
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x3c]
add ecx, 0x64
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.0040ae80
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x90]
mov edx, dword [eax + 0xc]
sub edx, dword [ecx + 4]
sar edx, 2
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x90]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x90]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x90]
mov dword [edx + 0xc], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3c]
add ecx, 0x54
call fcn.0040a6d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3c]
add ecx, 0x44
call fcn.0040a580
mov eax, 1
and eax, 1
test eax, eax
je 0x4039b9
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0xa0], edx
jmp 0x4039ce
mov dword [ebp - 0xa0], 0
xor eax, eax
jmp 0x403a31
cmp dword [ebp + 0xc], 0
jne 0x403a2e
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x18]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x18]
push eax
push 1
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00403a40
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret