Function at 0x40de0d
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 [0x41b014]
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 [0x41be24], 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 0x40e1e7
cmp eax, 0x104
ja 0x40e1e7
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 [0x45ce68], eax
cmp eax, 0xffffffff
je 0x40e1e7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x64
pop ecx
xor edx, edx
mov dword [0x45ce7c], esi
div ecx
push esi
mov dword [0x45ce78], eax
lea eax, [ebp - 0x41c]
push eax
push 2
lea eax, [ebp - 0x418]
mov dword [0x45ce74], esi
push eax
push dword [0x45ce68]
mov dword [0x45ce80], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40df0f
mov dword [0x41be24], 0x82
jmp 0x40e224
mov eax, 0xfeff
cmp word [ebp - 0x418], ax
jne 0x40df29
mov dword [0x41b1ec], 1
jmp 0x40dfa8
mov eax, 0xbbef
mov dword [0x41b1ec], esi
cmp word [ebp - 0x418], ax
jne 0x40df87
push esi
lea eax, [ebp - 0x41c]
push eax
push 1
lea eax, [ebp - 0x40d]
push eax
push dword [0x45ce68]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40df00
mov al, byte [ebp - 0x40d]
cmp al, byte [0x401c5a]
jne 0x40df78
mov dword [0x45e220], 1
jmp 0x40dfa8
mov eax, esi
mov dword [ebp - 0x41c], edi
mov dword [0x45e220], eax
jmp 0x40df92
mov edi, dword [ebp - 0x41c]
mov eax, dword [0x45e220]
test eax, eax
jne 0x40dfa8
push 1
push esi
neg edi
push edi
push dword [0x45ce68]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x45ce6c], esi
call fcn.0040ed67
movzx ecx, word [0x401c60]
mov edi, 0x401c14
mov dword [0x41ce28], esi
mov eax, 0x401c60
test cx, cx
je 0x40e006
mov eax, ecx
mov ebx, 0x401c60
mov ecx, eax
call fcn.0040ef20
test eax, eax
je 0x40dff4
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
movzx ecx, word [ebx]
mov eax, ecx
test cx, cx
jne 0x40dfd6
mov dword [ebp - 0x410], ebx
mov ebx, dword [ebp - 0x420]
mov eax, dword [ebp - 0x410]
xor ecx, ecx
cmp cx, word [eax]
jne 0x40e0e2
call fcn.0040ed67
xor eax, eax
mov word [ebp - 0x412], ax
jmp 0x40e066
lea ecx, [ebp - 0x414]
call fcn.0040eddd
test eax, eax
je 0x40e0ca
push dword [ebp - 0x414]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x40e0ca
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ecx, dword [0x41ce28]
shl ecx, 4
add ecx, eax
mov dword [0x41ce28], ecx
push 0x2e
pop ecx
call fcn.0040ef20
test eax, eax
je 0x40e021
lea ecx, [ebp - 0x414]
call fcn.0040eddd
test eax, eax
je 0x40e0ca
push dword [ebp - 0x414]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x40e0ca
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ecx, dword [0x41ce28]
shl ecx, 4
add eax, ecx
inc esi
mov dword [0x41ce28], eax
cmp esi, 2
jb 0x40e072
cmp eax, 0x500
je 0x40e0d9
mov dword [0x41be24], 0x86
jmp 0x40e224
mov dword [0x41be24], 0x85
jmp 0x40e224
call fcn.0040ed67
mov ecx, ebx
jmp 0x40e157
movzx eax, word [0x401c14]
test ax, ax
je 0x40e10c
mov ecx, eax
call fcn.0040ef20
test eax, eax
je 0x40e10c
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
movzx ecx, word [edi]
mov eax, ecx
test cx, cx
jne 0x40e0ee
cmp word [edi], si
jne 0x40e175
push 0x34
pop ecx
call fcn.0040ef20
mov esi, eax
call fcn.0040ed67
lea ecx, [ebp - 0x410]
call fcn.0040eddd
test eax, eax
je 0x40e224
mov cx, word [ebp - 0x410]
call fcn.0040ef50
test eax, eax
je 0x40e224
mov ecx, ebx
test esi, esi
je 0x40e161
mov dword [0x41ce28], 0x400
call fcn.0049adb9
jmp 0x40e224
mov dword [0x41ce28], 0x310
call fcn.0040e331
jmp 0x40e224
mov edi, dword [ebp - 0x424]
test edi, edi
jne 0x40e18e
mov dword [0x41be24], 0x7b
jmp 0x40e224
test ebx, ebx
je 0x40e1b5
push esi
push 9
push 0x110a
push dword [0x41b080]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, eax
call fcn.00407dc7
cmp ebx, eax
jne 0x40e0ca
cmp dword [0x41be00], esi
je 0x40e1d8
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [0x41be00]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x41be00], esi
mov edx, dword [ebp - 0x428]
mov ecx, edi
call fcn.0040e247
jmp 0x40e224
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x401d00
lea eax, [ebp - 0x40c]
push 0xfa
push eax
call fcn.00402540
add esp, 0x10
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [0x45ce68], esi
mov dword [0x41be24], 0x81
mov eax, dword [0x45ce68]
test eax, eax
je 0x40e234
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.00419cc0
mov esp, ebp
pop ebp
ret 4