Function at 0x40f5b0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
sub esp, 0x464
push ebx
push ebp
push esi
push edi
push 0x3e8
push ecx
lea eax, [esp + 0x78]
mov dword [esp + 0x1c], edx
push eax
call fcn.0046d4e0
add esp, 0xc
lea ecx, [esp + 0x70]
call fcn.0040e3d0
test eax, eax
je 0x40f5f6
push str.file_not_found_or_wrong_path_n
call fcn.0040e1d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x464
ret
call fcn.0040e280
mov eax, dword [0x4af158]
test eax, eax
je 0x40f60d
push eax
call fcn.0046b2fc
add esp, 4
push dword [0x4af288]
call fcn.0046b317
mov ecx, dword [0x246d5a8]
add esp, 4
mov dword [0x4af158], eax
xor eax, eax
mov dword [0x246cd48], eax
test ecx, ecx
jne 0x40f6c5
xor edx, edx
mov dword [0x246d5ac], edx
cmp dword [0x4af288], eax
jle 0x40f7fa
nop dword [eax]
movd xmm0, dword [0x4af288]
movd xmm1, edx
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
mulss xmm1, dword [0x4a6ae8]
cvttss2si ecx, xmm1
cmp eax, ecx
je 0x40f687
mov dword [0x246cd48], ecx
call fcn.00419770
mov edx, dword [0x246d5ac]
push dword [0x246d5b0]
mov eax, dword [0x4af158]
push 0x3e8
add eax, edx
push 1
push eax
call fcn.004748bb
mov edx, dword [0x246d5ac]
add esp, 0x10
add edx, eax
mov dword [0x246d5ac], edx
cmp edx, dword [0x4af288]
jge 0x40f7f1
mov eax, dword [0x246cd48]
jmp 0x40f650
cmp ecx, 1
jne 0x40f763
xor edx, edx
mov dword [0x246d5ac], edx
cmp dword [0x4af288], eax
jle 0x40f80f
nop dword [eax]
nop word [eax + eax]
movd xmm0, dword [0x4af288]
movd xmm1, edx
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
mulss xmm1, dword [0x4a6ae8]
cvttss2si ecx, xmm1
cmp eax, ecx
je 0x40f727
mov dword [0x246cd48], ecx
call fcn.00419770
mov edx, dword [0x246d5ac]
mov eax, dword [0x4af158]
push 0x3e8
add eax, edx
push eax
push dword [0x246cd4c]
call fcn.00401850
mov edx, dword [0x246d5ac]
add esp, 0xc
add edx, eax
mov dword [0x246d5ac], edx
cmp edx, dword [0x4af288]
jge 0x40f7f1
mov eax, dword [0x246cd48]
jmp 0x40f6f0
mov ecx, dword [0x246d5b4]
sub esp, 0xc
call fcn.00463f30
mov eax, dword [0x4af288]
xor edx, edx
add esp, 0xc
mov dword [0x246d5ac], edx
test eax, eax
jle 0x40f7e6
movd xmm1, edx
movd xmm0, eax
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
mulss xmm1, dword [0x4a6ae8]
cvttss2si ecx, xmm1
cmp dword [0x246cd48], ecx
je 0x40f7bc
mov dword [0x246cd48], ecx
call fcn.00419770
mov edx, dword [0x246d5ac]
add edx, dword [0x4af158]
push 0x3e8
call fcn.004640c0
mov edx, dword [0x246d5ac]
add esp, 4
add edx, eax
mov eax, dword [0x4af288]
mov dword [0x246d5ac], edx
cmp edx, eax
jl 0x40f785
mov ecx, dword [0x246d5b4]
call fcn.00464360
mov eax, dword [0x246d5a8]
test eax, eax
jne 0x40f80a
push dword [0x246d5b0]
call fcn.0046b467
add esp, 4
jmp 0x40f84d
cmp eax, 1
jne 0x40f81f
push dword [0x246cd4c]
call fcn.004023d0
add esp, 4
jmp 0x40f84d
mov esi, dword [0x246d5b4]
test esi, esi
je 0x40f84d
cmp dword [esi + 0x9c], 0
je 0x40f839
mov ecx, esi
call fcn.00464360
push dword [esi + 0x20]
mov eax, dword [esi + 0x14]
push dword [esi + 0x1c]
call eax
push esi
call fcn.0046b2fc
add esp, 0xc
cmp dword [0x4b165c], 0
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
je 0x40f8c0
push 0x64
push str._d__
push 0x4b0ef0
call fcn.0040e260
add esp, 0xc
push 0x4b0ef0
push 0x7e8
push dword [0x4b165c]
call edi
push 0
push 0x65
push 0x402
push 0x1389
push dword [0x4b165c]
call ebp
push eax
call ebx
push 0
push 0x65
push 0x402
push 0x7ed
push dword [0x4b165c]
call ebp
push eax
call ebx
mov ecx, dword [0x4af158]
cmp byte [ecx], 0x37
jne 0x40f93a
push str.byteswaping_rom..._n
call fcn.0040e1d0
mov eax, dword [0x4af288]
xor esi, esi
cdq
add esp, 4
sub eax, edx
mov dword [0x246d5ac], esi
mov edi, eax
sar edi, 1
test edi, edi
jle 0x40f921
mov edx, dword [0x4af158]
nop word [eax + eax]
mov cl, byte [edx + esi*2]
movzx eax, cl
mov dword [0x246cd48], eax
mov al, byte [edx + esi*2 + 1]
mov byte [edx + esi*2], al
mov byte [edx + esi*2 + 1], cl
inc esi
cmp esi, edi
jl 0x40f900
mov dword [0x246d5ac], esi
push 0x49d27c
call fcn.0040e1d0
mov ecx, dword [0x4af158]
add esp, 4
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov al, byte [ecx]
cmp al, 0x40
jne 0x40f9b0
mov eax, dword [0x4af288]
cdq
and edx, 3
mov dword [0x246d5ac], 0
lea esi, [edx + eax]
sar esi, 2
test esi, esi
jle 0x40f99b
lea edx, [ecx + 1]
mov dword [0x246d5ac], esi
nop word [eax + eax]
movzx eax, byte [edx + 2]
lea edx, [edx + 4]
movzx ecx, byte [edx - 5]
mov byte [edx - 5], al
mov byte [edx - 2], cl
mov cl, byte [edx - 4]
movzx eax, cl
mov dword [0x246cd48], eax
movzx eax, byte [edx - 3]
mov byte [edx - 4], al
mov byte [edx - 3], cl
sub esi, 1
jne 0x40f970
push str.rom_byteswaped_n
call fcn.0040e1d0
mov ecx, dword [0x4af158]
add esp, 4
jmp 0x40f9d6
cmp al, 0x80
jne 0x40fa71
cmp byte [ecx + 1], 0x37
jne 0x40fa71
cmp byte [ecx + 2], 0x12
jne 0x40fa71
cmp byte [ecx + 3], 0x40
jne 0x40fa71
push dword [0x4af288]
mov edx, ecx
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
call fcn.0040d440
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
add esp, 4
call fcn.0040d510
mov eax, dword [0x4b165c]
test eax, eax
je 0x40fa7e
push 0x49b40e
push 0x7e8
push eax
call edi
push 0
push 0
push 0x402
push 0x1389
push dword [0x4b165c]
call ebp
push eax
call ebx
push 0
push 0
push 0x402
push 0x7ed
push dword [0x4b165c]
call ebp
push eax
call ebx
jmp 0x40fa7e
push str.wrong_file_format___n
call fcn.0040e1d0
add esp, 4
push dword [0x4af158]
call fcn.0046b2fc
add esp, 4
mov dword [0x4af158], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x464
ret