Function at 0x411cbf
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 [0x41f024]
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 edi, edi
mov dword [ebp - 0x420], ecx
mov esi, edx
mov dword [ebp - 0x424], ebx
push edi
push eax
mov dword [ebp - 0x428], esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [0x41fe18], 0x80
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x104
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x4120ae
cmp eax, 0x104
ja 0x4120ae
push edi
push 0x80
push 3
pop esi
push esi
push edi
push 1
push MenuHelp
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x45fe20], eax
cmp eax, 0xffffffff
je 0x4120ae
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x64
pop ecx
xor edx, edx
mov dword [0x45fe34], edi
div ecx
push edi
mov dword [0x45fe30], eax
lea eax, [ebp - 0x41c]
push eax
push 2
lea eax, [ebp - 0x418]
mov dword [0x45fe2c], edi
push eax
push dword [0x45fe20]
mov dword [0x45fe38], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4120a2
mov eax, 0xfeff
cmp word [ebp - 0x418], ax
jne 0x411dd3
mov dword [0x41f18c], 1
jmp 0x411e56
mov eax, 0xbbef
mov dword [0x41f18c], edi
cmp word [ebp - 0x418], ax
jne 0x411e35
push edi
lea eax, [ebp - 0x41c]
push eax
push 1
lea eax, [ebp - 0x40d]
push eax
push dword [0x45fe20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4120a2
mov al, byte [ebp - 0x40d]
cmp al, byte [0x401f96]
jne 0x411e26
mov dword [0x461240], 1
jmp 0x411e56
mov eax, edi
mov dword [ebp - 0x41c], esi
mov dword [0x461240], eax
jmp 0x411e40
mov esi, dword [ebp - 0x41c]
mov eax, dword [0x461240]
test eax, eax
jne 0x411e56
push 1
push edi
neg esi
push esi
push dword [0x45fe20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x45fe24], edi
call fcn.00412bf9
movzx ecx, word [0x401f98]
mov esi, 0x401f58
mov dword [0x41fe1c], edi
mov eax, 0x401f98
test cx, cx
je 0x411eb4
mov eax, ecx
mov ebx, 0x401f98
mov ecx, eax
call fcn.00412dbf
test eax, eax
je 0x411ea2
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
movzx ecx, word [ebx]
mov eax, ecx
test cx, cx
jne 0x411e84
mov dword [ebp - 0x410], ebx
mov ebx, dword [ebp - 0x424]
mov eax, dword [ebp - 0x410]
xor ecx, ecx
cmp cx, word [eax]
jne 0x411f93
call fcn.00412bf9
xor eax, eax
mov word [ebp - 0x412], ax
jmp 0x411f14
lea ecx, [ebp - 0x414]
call fcn.00412c77
test eax, eax
je 0x411f84
push dword [ebp - 0x414]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x411f84
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ecx, dword [0x41fe1c]
shl ecx, 4
add ecx, eax
mov dword [0x41fe1c], ecx
push 0x2e
pop ecx
call fcn.00412dbf
test eax, eax
je 0x411ecf
lea ecx, [ebp - 0x414]
call fcn.00412c77
test eax, eax
je 0x411f84
push dword [ebp - 0x414]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x411f84
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ecx, dword [0x41fe1c]
shl ecx, 4
add eax, ecx
inc edi
mov dword [0x41fe1c], eax
cmp edi, 2
jb 0x411f20
cmp eax, 0x500
je 0x411f78
mov dword [0x41fe18], 0x86
jmp 0x4120eb
call fcn.00412bf9
mov ecx, ebx
jmp 0x412008
mov dword [0x41fe18], 0x85
jmp 0x4120eb
movzx eax, word [0x401f58]
test ax, ax
je 0x411fbd
mov ecx, eax
call fcn.00412dbf
test eax, eax
je 0x411fbd
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
movzx ecx, word [esi]
mov eax, ecx
test cx, cx
jne 0x411f9f
cmp word [esi], di
jne 0x412026
push 0x34
pop ecx
call fcn.00412dbf
mov esi, eax
call fcn.00412bf9
lea ecx, [ebp - 0x410]
call fcn.00412c77
test eax, eax
je 0x4120eb
mov cx, word [ebp - 0x410]
call fcn.00412df3
test eax, eax
je 0x4120eb
mov ecx, ebx
test esi, esi
je 0x412012
mov dword [0x41fe1c], 0x400
call fcn.00412446
jmp 0x4120eb
mov dword [0x41fe1c], 0x310
call fcn.00412201
jmp 0x4120eb
mov esi, dword [ebp - 0x420]
test esi, esi
jne 0x41203f
mov dword [0x41fe18], 0x7b
jmp 0x4120eb
test ebx, ebx
je 0x412070
mov esi, dword [0x461250]
push edi
push 9
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov ecx, esi
call fcn.0040a839
cmp ebx, eax
jne 0x411f84
mov esi, dword [ebp - 0x420]
cmp dword [0x41fe08], edi
je 0x412093
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [0x41fe08]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x41fe08], edi
mov edx, dword [ebp - 0x428]
mov ecx, esi
call fcn.00412112
jmp 0x4120eb
mov dword [0x41fe18], 0x82
jmp 0x4120eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x402030
lea eax, [ebp - 0x40c]
push 0xfa
push eax
call fcn.00402b26
add esp, 0x10
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [0x45fe20], edi
mov dword [0x41fe18], 0x81
mov eax, dword [0x45fe20]
test eax, eax
je 0x4120fb
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.0041dc30
leave
ret 4