Function at 0x410ce3
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x214]
push esi
push edi
push 0x208
xor esi, esi
mov dword [ebp - 0x424], ecx
mov edi, edx
mov dword [ebp - 0x420], ebx
push esi
push eax
mov dword [ebp - 0x428], edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [0x41edf0], 0x80
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x104
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x4110cf
cmp eax, 0x104
ja 0x4110cf
push esi
push 0x80
push 3
pop edi
push edi
push esi
push 1
push MenuHelp
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x45edf8], eax
cmp eax, 0xffffffff
je 0x4110cf
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x64
pop ecx
xor edx, edx
mov dword [0x45ee0c], esi
div ecx
push esi
mov dword [0x45ee08], eax
lea eax, [ebp - 0x41c]
push eax
push 2
lea eax, [ebp - 0x418]
mov dword [0x45ee04], esi
push eax
push dword [0x45edf8]
mov dword [0x45ee10], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4110c3
mov eax, 0xfeff
cmp word [ebp - 0x418], ax
jne 0x410df7
mov dword [0x41e18c], 1
jmp 0x410e7a
mov eax, 0xbbef
mov dword [0x41e18c], esi
cmp word [ebp - 0x418], ax
jne 0x410e59
push esi
lea eax, [ebp - 0x41c]
push eax
push 1
lea eax, [ebp - 0x40d]
push eax
push dword [0x45edf8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4110c3
mov al, byte [ebp - 0x40d]
cmp al, byte [0x401fca]
jne 0x410e4a
mov dword [0x460220], 1
jmp 0x410e7a
mov eax, esi
mov dword [ebp - 0x41c], edi
mov dword [0x460220], eax
jmp 0x410e64
mov edi, dword [ebp - 0x41c]
mov eax, dword [0x460220]
test eax, eax
jne 0x410e7a
push 1
push esi
neg edi
push edi
push dword [0x45edf8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x45edfc], esi
call fcn.00411be7
movzx ecx, word [0x401fd0]
mov edi, 0x401f80
mov dword [0x41edf4], esi
mov eax, 0x401fd0
test cx, cx
je 0x410ed8
mov eax, ecx
mov ebx, 0x401fd0
mov ecx, eax
call fcn.00411d9a
test eax, eax
je 0x410ec6
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
movzx ecx, word [ebx]
mov eax, ecx
test cx, cx
jne 0x410ea8
mov dword [ebp - 0x410], ebx
mov ebx, dword [ebp - 0x420]
mov eax, dword [ebp - 0x410]
xor ecx, ecx
cmp cx, word [eax]
jne 0x410fb7
call fcn.00411be7
xor eax, eax
mov word [ebp - 0x412], ax
jmp 0x410f38
lea ecx, [ebp - 0x414]
call fcn.00411c59
test eax, eax
je 0x410fa8
push dword [ebp - 0x414]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x410fa8
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ecx, dword [0x41edf4]
shl ecx, 4
add ecx, eax
mov dword [0x41edf4], ecx
push 0x2e
pop ecx
call fcn.00411d9a
test eax, eax
je 0x410ef3
lea ecx, [ebp - 0x414]
call fcn.00411c59
test eax, eax
je 0x410fa8
push dword [ebp - 0x414]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x410fa8
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ecx, dword [0x41edf4]
shl ecx, 4
add eax, ecx
inc esi
mov dword [0x41edf4], eax
cmp esi, 2
jb 0x410f44
cmp eax, 0x500
je 0x410f9c
mov dword [0x41edf0], 0x86
jmp 0x41110c
call fcn.00411be7
mov ecx, ebx
jmp 0x41102c
mov dword [0x41edf0], 0x85
jmp 0x41110c
movzx eax, word [0x401f80]
test ax, ax
je 0x410fe1
mov ecx, eax
call fcn.00411d9a
test eax, eax
je 0x410fe1
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
movzx ecx, word [edi]
mov eax, ecx
test cx, cx
jne 0x410fc3
cmp word [edi], si
jne 0x41104a
push 0x34
pop ecx
call fcn.00411d9a
mov esi, eax
call fcn.00411be7
lea ecx, [ebp - 0x410]
call fcn.00411c59
test eax, eax
je 0x41110c
mov cx, word [ebp - 0x410]
call fcn.00411dc8
test eax, eax
je 0x41110c
mov ecx, ebx
test esi, esi
je 0x411036
mov dword [0x41edf4], 0x400
call fcn.00411462
jmp 0x41110c
mov dword [0x41edf4], 0x310
call fcn.00411216
jmp 0x41110c
mov edi, dword [ebp - 0x424]
test edi, edi
jne 0x411063
mov dword [0x41edf0], 0x7b
jmp 0x41110c
test ebx, ebx
je 0x411091
mov eax, dword [0x45ef80]
push esi
push 9
push 0x110a
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x45ef80]
push eax
call fcn.0040a2c5
cmp ebx, eax
jne 0x410fa8
cmp dword [0x41ede0], esi
je 0x4110b4
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [0x41ede0]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x41ede0], esi
mov edx, dword [ebp - 0x428]
mov ecx, edi
call fcn.0041112d
jmp 0x41110c
mov dword [0x41edf0], 0x82
jmp 0x41110c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x402070
lea eax, [ebp - 0x40c]
push 0xfa
push eax
call fcn.00402a0c
add esp, 0x10
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [0x45edf8], esi
mov dword [0x41edf0], 0x81
mov eax, dword [0x45edf8]
test eax, eax
je 0x41111c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ca70
leave
ret 4