Function at 0x41fea0
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov edx, dword [0x42fb48]
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax*4 + 0x4300e8]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [edx + ecx*8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
inc eax
cmp byte [ebx], 0
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0xc], eax
je 0x420214
lea esp, [esp]
test eax, eax
je 0x420214
mov eax, ebx
call fcn.00406c10
mov edi, eax
cmp dword [edi], 0
mov dword [ebp - 0x20], 0
jle 0x420113
mov eax, dword [edi + 4]
dec eax
mov ebx, 1
cmp eax, 5
ja case.default.0x41ff23
jmp dword [eax*4 + 0x42023c]
mov eax, dword [edi + 8]
test eax, eax
je 0x41ff52
mov edx, dword [ebp - 0x10]
push edx
push 1
push eax
push 0x430260
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov dword [ebp - 8], 0
cmp eax, 1
jne 0x41ff55
mov dword [ebp - 8], ebx
lea ecx, [ebp - 0x2c]
push ecx
push 0x427af0
mov eax, dword [edi + 8]
push 0x430260
mov byte [eax + 0x430260], 0
call dword [sym.imp.MSVCR100.dll_sscanf]
fld qword [ebp - 0x2c]
fstp qword [esi]
add esi, 8
add esp, 0xc
dec dword [ebp - 0xc]
mov ebx, eax
mov dword [ebp - 0x14], esi
jmp 0x4200e9
cmp dword [edi + 8], 0xc
jg 0x42012a
mov eax, dword [ebp - 0x1c]
dec eax
je 0x41ffc3
dec eax
jne 0x420160
mov esi, dword [ebp + 0xc]
push 0xd
push 0x430cf0
push esi
call dword [sym.imp.MSVCR100.dll_strncpy]
mov eax, dword [edi + 8]
add esp, 0xc
test eax, eax
je 0x41fffb
mov edx, dword [ebp - 0x10]
push edx
jmp 0x41ffe2
mov esi, dword [ebp + 0x10]
push 0xd
push 0x430cf0
push esi
call dword [sym.imp.MSVCR100.dll_strncpy]
mov eax, dword [edi + 8]
add esp, 0xc
test eax, eax
je 0x41fffb
mov ecx, dword [ebp - 0x10]
push ecx
push 1
push eax
push esi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov dword [ebp - 8], 0
cmp eax, 1
jne 0x41fffe
mov dword [ebp - 8], ebx
mov eax, 0xc
call fcn.00403be0
mov esi, dword [ebp - 0x14]
mov eax, ebx
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x1c], eax
jmp 0x4200e9
mov eax, dword [edi + 8]
test eax, eax
je 0x420040
mov edx, dword [ebp - 0x10]
push edx
push 1
push eax
push 0x430260
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov dword [ebp - 8], 0
cmp eax, 1
jne 0x420043
mov dword [ebp - 8], ebx
lea ecx, [ebp - 0x2c]
push ecx
push 0x42d268
jmp 0x41ff5e
mov eax, dword [edi + 8]
test eax, eax
je 0x420079
mov edx, dword [ebp - 0x10]
push edx
push 1
push eax
push 0x430260
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov dword [ebp - 8], 0
cmp eax, 1
jne 0x42007c
mov dword [ebp - 8], ebx
lea ecx, [ebp - 0x2c]
push ecx
push 0x42d26c
jmp 0x41ff5e
mov eax, dword [edi + 8]
test eax, eax
je 0x4200af
mov edx, dword [ebp - 0x10]
push edx
push 1
push eax
push 0x430260
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x420198
mov dword [ebp - 8], ebx
jmp 0x4200fb
mov eax, dword [ebp - 0x10]
push eax
push 0x800
push 0x430260
call dword [sym.imp.MSVCR100.dll_fgets]
add esp, 0xc
jmp 0x4200e9
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x4300e8]
push edx
push str.problem_with_format_n_s_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
inc dword [ebp - 8]
cmp dword [ebp - 8], 0
je 0x420198
test ebx, ebx
je 0x4201a2
cmp dword [ebp - 0xc], 0
je 0x420110
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, dword [edi]
jl 0x41ff11
mov ebx, dword [ebp - 0x18]
add ebx, dword [edi + 0xc]
cmp byte [ebx], 0
mov dword [ebp - 0x18], ebx
je 0x420214
mov eax, dword [ebp - 0xc]
jmp 0x41fef0
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push str.id_must_be_12_or_fewer_characters_n
call esi
push 0x427955
push 0x428e48
call esi
add esp, 0xc
call fcn.00404240
inc dword [0x42fba4]
je 0x420158
call fcn.00403eb0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push 1
push str._nThere_should_only_be__d_ID_field_specified__n
call esi
push 0x427955
push 0x428e48
call esi
add esp, 0x10
call fcn.00404240
inc dword [0x42fba4]
je 0x420190
call fcn.00403eb0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push eax
push str._n_nData_do_not_match_format_at__s_n
call esi
push 0x427955
push 0x428e48
call esi
add esp, 0x10
call fcn.00404240
inc dword [0x42fba4]
je 0x42020c
mov edi, dword [sym.imp.MSVCR100.dll_clock]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
lea ebx, [ebx]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub ecx, esi
cmp ecx, 3
jbe 0x4201f0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
mov edx, dword [ebp - 0x10]
push edx
push 0x800
push 0x430260
call dword [sym.imp.MSVCR100.dll_fgets]
add esp, 0xc
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
dec eax
pop ebx
mov esp, ebp
pop ebp
ret