Function at 0x416e00
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43a396
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
mov eax, dword [0x44e7a0]
push ebp
push edi
lea ecx, [esp + 0xc0]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xf8]
push ecx
mov ecx, dword [esp + 0xf8]
xor ebp, ebp
mov byte [esp + 0xf], 0
mov dword [eax], ebp
call fcn.00430ca0
mov ecx, dword [0x450af4]
lea edx, [esp + 0x50]
push edx
call fcn.004306c0
push 0x43d8e0
push eax
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0xf8], ebp
call fcn.00401fd0
push 0x43d3cc
push eax
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x104], 1
call fcn.00401fd0
lea edx, [esp + 0xd8]
push edx
push eax
lea eax, [esp + 0xc4]
push eax
mov byte [esp + 0x110], 2
call fcn.00401fd0
push 0x43fde8
push eax
lea ecx, [esp + 0xb4]
push ecx
mov byte [esp + 0x11c], 3
call fcn.00401fd0
add esp, 0x30
lea ecx, [esp + 0xa4]
mov byte [esp + 0xec], 8
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x34]
mov byte [esp + 0xec], 7
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x6c]
mov byte [esp + 0xec], 6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x50]
mov byte [esp + 0xec], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [esp + 0xa0], 0x10
mov eax, dword [esp + 0x8c]
jae 0x416f2b
lea eax, [esp + 0x8c]
push 0x43d76c
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, ebp
mov dword [esp + 0x20], edi
je 0x417165
push ebx
push esi
mov esi, dword [sym.imp.MSVCR71.dll_fseek]
push 2
push ebp
push edi
call esi
push edi
call dword [sym.imp.MSVCR71.dll_ftell]
push ebp
push ebp
push edi
mov ebx, eax
mov dword [esp + 0x54], ebp
call esi
mov esi, dword [sym.imp.MSVCR71.dll_fread]
push edi
push 1
lea edx, [esp + 0x5c]
push 4
push edx
call esi
add esp, 0x2c
cmp eax, 1
jne 0x417159
push edi
push eax
lea eax, [esp + 0x20]
push 4
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x44], ebp
call esi
add esp, 0x10
cmp eax, 1
jne 0x417159
push edi
push eax
lea ecx, [esp + 0x3c]
push 4
push ecx
call esi
add esp, 0x10
cmp eax, 1
jne 0x417159
mov edx, dword [esp + 0x104]
mov eax, dword [esp + 0x18]
lea ebp, [ebx - 0xc]
push ebp
mov dword [edx], eax
mov dword [esp + 0x34], ebp
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
test eax, eax
mov dword [esp + 0x1c], eax
je 0x417159
push edi
push 1
push ebp
push eax
call esi
add esp, 0x10
cmp eax, 1
jne 0x41714c
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
add ebx, 0xfffffffc
push ebx
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x41714c
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov dword [ebp], ecx
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, ecx
shr ecx, 2
mov dword [ebp + 4], edx
lea edi, [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.00430a70
push ebp
mov esi, eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp esi, eax
jne 0x417148
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
xor eax, eax
or eax, edx
mov dword [esp + 0x20], eax
xor edi, edi
or ecx, edi
mov eax, ecx
and ecx, 0x7fffffff
mov dword [esp + 0x24], ecx
fild qword [esp + 0x20]
xor esi, esi
and eax, 0x80000000
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], esi
fild qword [esp + 0x20]
sub esp, 8
mov dword [esp + 0x1c], esi
xor bl, bl
fchs
faddp st(1)
fmul qword [0x43fde0]
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_ceil]
add esp, 8
call fcn.00437e78
mov ecx, eax
mov eax, dword [esp + 0x30]
xor ebp, ebp
cmp eax, esi
mov dword [esp + 0x20], ecx
jbe 0x417112
mov eax, dword [esp + 0x1c]
mov al, byte [eax + ebp]
cmp al, 0xff
jne 0x4170de
add esi, 8
test bl, bl
jne 0x417109
add dword [esp + 0x14], 8
jmp 0x417109
mov ecx, 7
mov edi, 8
mov dl, 1
shl dl, cl
and dl, al
mov byte [esp + 0x2f], dl
je 0x4170ff
inc esi
test bl, bl
jne 0x417101
inc dword [esp + 0x14]
jmp 0x417101
mov bl, 1
dec ecx
dec edi
jne 0x4170e8
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
inc ebp
cmp ebp, eax
jb 0x4170c5
cmp ecx, esi
jne 0x41711b
mov byte [esp + 0x13], 1
test ecx, ecx
mov edi, dword [esp + 0x28]
jbe 0x417139
mov eax, dword [esp + 0x14]
imul eax, eax, 0x64
xor edx, edx
div ecx
mov ecx, dword [esp + 0x100]
mov dword [ecx], eax
jmp 0x41714c
mov edx, dword [esp + 0x100]
mov dword [edx], 0x64
jmp 0x41714c
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
pop esi
pop ebx
lea ecx, [esp + 0x88]
mov dword [esp + 0xec], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0xe4]
mov al, byte [esp + 0xb]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xdc]
pop ebp
call fcn.00437d67
add esp, 0xe8
ret 0xc