Function at 0x41e1b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x571c46
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x59ad00]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push 0x57bb5c
call esi
push ebx
push str._Input_______:__s_n
call esi
push edi
push str._Input_______:__s_n
call esi
mov eax, dword [ebp + 0xc]
push eax
push str._Input_______:__s_n
call esi
push 0x57bb5c
call esi
mov ecx, dword [ebp + 0x10]
add esp, 0x20
call fcn.0041ddf0
push 0x57bc98
push ebx
call dword [sym.imp.MSVCR100.dll_fopen]
mov ebx, eax
add esp, 8
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x41e253
or eax, 0xffffffff
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57b9d0
push edi
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
je 0x41e23a
mov ecx, dword [ebp + 0xc]
push 0x57b9d0
push ecx
call fcn.004178e0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x41e23a
xor eax, eax
xor edi, edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
fld qword [0x57b8c8]
fst qword [esp + 0x6c]
push str._Sort_pockets..._n
fst qword [esp + 0x88]
mov byte [esp + 0x104], 1
fst qword [esp + 0x80]
fstp qword [esp + 0x60]
call esi
add esp, 4
call dword [sym.imp.MSVCR100.dll_clock]
mov dword [esp + 0x20], eax
jmp 0x41e2ea
mov esi, dword [sym.imp.MSVCR100.dll_printf]
mov ebx, dword [esp + 0x14]
push ebx
push 1
lea edx, [esp + 0x24]
push 4
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x41e552
push ebx
push eax
lea eax, [esp + 0x34]
push 8
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
sete al
test al, al
je 0x41e552
fld qword [esp + 0x5c]
fsub qword [esp + 0x2c]
fabs
fcomp qword [0x57b6f8]
fnstsw ax
test ah, 0x41
jne 0x41e37d
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x70]
push edx
push eax
lea edx, [esp + 0x88]
lea ecx, [esp + 0x90]
lea esi, [esp + 0x44]
call fcn.0041bbb0
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x44]
add esp, 0xc
sar ecx, 4
cmp ecx, 4
jae 0x41e37d
mov ecx, esi
call fcn.00408200
mov eax, dword [ebp + 0x10]
fld qword [esp + 0x2c]
mov ecx, dword [eax + 0x24]
sub ecx, dword [eax + 0x20]
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [ebp + 0x10]
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
sub esp, 8
add ebx, edx
lea edx, [esp + 0x40]
fstp qword [esp]
push edx
call fcn.0041e100
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x28], 0
jle 0x41e2e0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea edi, [esp + 0x50]
call fcn.0041c740
mov esi, edi
call fcn.00419e20
mov edi, dword [esp + 0x28]
mov esi, dword [sym.imp.MSVCR100.dll_fscanf]
lea ecx, [esp + 0x68]
push ecx
push 0x57bc7c
push edi
call esi
lea edx, [esp + 0x84]
push edx
push 0x57bc7c
push edi
call esi
fld qword [esp + 0x48]
fld st(0)
add esp, 0x1c
fldz
xor edx, edx
fld qword [esp + 0x74]
xor ecx, ecx
fcom st(1)
fnstsw ax
fld qword [esp + 0x64]
test ah, 0x41
jne 0x41e54b
fcom st(4)
fnstsw ax
fstp st(4)
test ah, 0x41
jne 0x41e447
jmp 0x41e434
fxch st(2)
fadd st(2), st(0)
inc ecx
fxch st(2)
fcom st(3)
fnstsw ax
test ah, 5
jnp 0x41e432
fsub st(2)
dec ecx
fxch st(2)
fld st(3)
fsub st(3)
fcom st(2)
fnstsw ax
test ah, 5
jp 0x41e458
fstp st(0)
fld st(1)
fxch st(2)
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x41e46d
cmp ecx, edx
jle 0x41e46d
fstp st(1)
fld st(0)
fxch st(1)
fxch st(3)
mov dword [esp + 0xac], ecx
fstp qword [esp + 0x8c]
mov dword [esp + 0xb0], ebx
fxch st(2)
mov dword [esp + 0xb4], edx
fstp qword [esp + 0x94]
mov dword [esp + 0xb8], edx
fxch st(1)
mov dword [esp + 0xbc], edx
fstp qword [esp + 0x9c]
fstp qword [esp + 0xa4]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
mov ecx, esi
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x104], 2
call fcn.0040a2a0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xb8]
push ecx
push esi
push edi
push edx
lea ecx, [esp + 0xc4]
call fcn.0041c410
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0x104], 3
call fcn.0041df10
mov eax, dword [esp + 0xb4]
mov byte [esp + 0x100], 1
test eax, eax
je 0x41e533
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x1c]
jl 0x41e3c1
jmp 0x41e2e0
fstp st(4)
jmp 0x41e447
mov ecx, dword [ebp + 0x10]
call fcn.0041c5d0
call dword [sym.imp.MSVCR100.dll_clock]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x50], eax
call fcn.004d6100
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fclose]
call ebx
mov eax, dword [esp + 0x30]
push eax
call ebx
mov ecx, dword [esp + 0x28]
push ecx
call ebx
push 0x57bb5c
call esi
mov eax, dword [esp + 0x50]
add esp, 0x18
test eax, eax
je 0x41e5a5
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
test edi, edi
je 0x41e5b2
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret