Function at 0x410d73
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 [0x41edf8], 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 0x41115f
cmp eax, 0x104
ja 0x41115f
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 [0x45ee00], eax
cmp eax, 0xffffffff
je 0x41115f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x64
pop ecx
xor edx, edx
mov dword [0x45ee14], esi
div ecx
push esi
mov dword [0x45ee10], eax
lea eax, [ebp - 0x41c]
push eax
push 2
lea eax, [ebp - 0x418]
mov dword [0x45ee0c], esi
push eax
push dword [0x45ee00]
mov dword [0x45ee18], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411153
mov eax, 0xfeff
cmp word [ebp - 0x418], ax
jne 0x410e87
mov dword [0x41e18c], 1
jmp 0x410f0a
mov eax, 0xbbef
mov dword [0x41e18c], esi
cmp word [ebp - 0x418], ax
jne 0x410ee9
push esi
lea eax, [ebp - 0x41c]
push eax
push 1
lea eax, [ebp - 0x40d]
push eax
push dword [0x45ee00]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411153
mov al, byte [ebp - 0x40d]
cmp al, byte [0x401f9a]
jne 0x410eda
mov dword [0x460230], 1
jmp 0x410f0a
mov eax, esi
mov dword [ebp - 0x41c], edi
mov dword [0x460230], eax
jmp 0x410ef4
mov edi, dword [ebp - 0x41c]
mov eax, dword [0x460230]
test eax, eax
jne 0x410f0a
push 1
push esi
neg edi
push edi
push dword [0x45ee00]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x45ee04], esi
call fcn.00411c77
movzx ecx, word [0x401fa0]
mov edi, 0x401f50
mov dword [0x41edfc], esi
mov eax, 0x401fa0
test cx, cx
je 0x410f68
mov eax, ecx
mov ebx, 0x401fa0
mov ecx, eax
call fcn.00411e2a
test eax, eax
je 0x410f56
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
movzx ecx, word [ebx]
mov eax, ecx
test cx, cx
jne 0x410f38
mov dword [ebp - 0x410], ebx
mov ebx, dword [ebp - 0x420]
mov eax, dword [ebp - 0x410]
xor ecx, ecx
cmp cx, word [eax]
jne 0x411047
call fcn.00411c77
xor eax, eax
mov word [ebp - 0x412], ax
jmp 0x410fc8
lea ecx, [ebp - 0x414]
call fcn.00411ce9
test eax, eax
je 0x411038
push dword [ebp - 0x414]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x411038
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ecx, dword [0x41edfc]
shl ecx, 4
add ecx, eax
mov dword [0x41edfc], ecx
push 0x2e
pop ecx
call fcn.00411e2a
test eax, eax
je 0x410f83
lea ecx, [ebp - 0x414]
call fcn.00411ce9
test eax, eax
je 0x411038
push dword [ebp - 0x414]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x411038
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ecx, dword [0x41edfc]
shl ecx, 4
add eax, ecx
inc esi
mov dword [0x41edfc], eax
cmp esi, 2
jb 0x410fd4
cmp eax, 0x500
je 0x41102c
mov dword [0x41edf8], 0x86
jmp 0x41119c
call fcn.00411c77
mov ecx, ebx
jmp 0x4110bc
mov dword [0x41edf8], 0x85
jmp 0x41119c
movzx eax, word [0x401f50]
test ax, ax
je 0x411071
mov ecx, eax
call fcn.00411e2a
test eax, eax
je 0x411071
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
movzx ecx, word [edi]
mov eax, ecx
test cx, cx
jne 0x411053
cmp word [edi], si
jne 0x4110da
push 0x34
pop ecx
call fcn.00411e2a
mov esi, eax
call fcn.00411c77
lea ecx, [ebp - 0x410]
call fcn.00411ce9
test eax, eax
je 0x41119c
mov cx, word [ebp - 0x410]
call fcn.00411e58
test eax, eax
je 0x41119c
mov ecx, ebx
test esi, esi
je 0x4110c6
mov dword [0x41edfc], 0x400
call fcn.004114f2
jmp 0x41119c
mov dword [0x41edfc], 0x310
call fcn.004112a6
jmp 0x41119c
mov edi, dword [ebp - 0x424]
test edi, edi
jne 0x4110f3
mov dword [0x41edf8], 0x7b
jmp 0x41119c
test ebx, ebx
je 0x411121
mov eax, dword [0x45ef88]
push esi
push 9
push 0x110a
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x45ef88]
push eax
call fcn.0040a335
cmp ebx, eax
jne 0x411038
cmp dword [0x41ede8], esi
je 0x411144
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [0x41ede8]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x41ede8], esi
mov edx, dword [ebp - 0x428]
mov ecx, edi
call fcn.004111bd
jmp 0x41119c
mov dword [0x41edf8], 0x82
jmp 0x41119c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x402040
lea eax, [ebp - 0x40c]
push 0xfa
push eax
call fcn.004029ec
add esp, 0x10
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [0x45ee00], esi
mov dword [0x41edf8], 0x81
mov eax, dword [0x45ee00]
test eax, eax
je 0x4111ac
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.0041cc10
leave
ret 4