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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push edi
mov dword [ebp - 0x42c], ecx
mov word [ebp - 0x208], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x208]
push ecx
push 0x104
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x4ec93e
cmp dword [ebp - 0x224], 0x104
ja 0x4ec93e
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x42c]
mov dword [ecx + 0x40008], eax
push 0
mov edx, dword [ebp - 0x42c]
mov eax, dword [edx + 0x40008]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edx, edx
mov ecx, 0x64
div ecx
mov edx, dword [ebp - 0x42c]
mov dword [edx + 0x40018], eax
mov eax, dword [ebp - 0x42c]
mov dword [eax + 0x4001c], 0
mov ecx, dword [ebp - 0x42c]
mov dword [ecx + 0x40014], 0
mov edx, dword [ebp - 0x42c]
mov dword [edx + 0x40020], 0
push 0
lea eax, [ebp - 0x234]
push eax
push 2
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x42c]
mov eax, dword [edx + 0x40008]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ec658
jmp 0x4ec9a1
mov ecx, dword [ebp - 0x230]
and ecx, 0xffff
xor edx, edx
mov dx, word [0x5bd3f0]
cmp ecx, edx
jne 0x4ec67d
mov dword [0x5cc6f8], 1
jmp 0x4ec6a0
mov dword [0x5cc6f8], 0
push 1
push 0
push 0xfffffffffffffffe
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax + 0x40008]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x42c]
mov dword [edx + 0x4000c], 0
mov ecx, dword [ebp - 0x42c]
call fcn.004ed660
mov dword [ebp - 0x22c], 0x5bd314
mov dword [0x5cc6fc], 0
mov dword [ebp - 0x228], str.Windows_Registry_Editor_Version
mov eax, dword [ebp - 0x228]
xor ecx, ecx
mov cx, word [eax]
test ecx, ecx
je 0x4ec71a
mov edx, dword [ebp - 0x228]
mov ax, word [edx]
push eax
mov ecx, dword [ebp - 0x42c]
call fcn.004ed8ae
test eax, eax
je 0x4ec716
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x228], eax
jmp 0x4ec718
jmp 0x4ec71a
jmp 0x4ec6d9
mov edx, dword [ebp - 0x228]
xor eax, eax
mov ax, word [edx]
test eax, eax
jne 0x4ec868
mov ecx, dword [ebp - 0x42c]
call fcn.004ed660
mov word [ebp - 0x20a], 0
push 0x2e
mov ecx, dword [ebp - 0x42c]
call fcn.004ed8ae
test eax, eax
jne 0x4ec7b5
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x42c]
call fcn.004ed6f9
test eax, eax
je 0x4ec77a
mov dx, word [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x4ec77f
jmp 0x4ec99f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov dword [ebp - 0x210], eax
mov ecx, dword [0x5cc6fc]
shl ecx, 4
mov dword [0x5cc6fc], ecx
mov edx, dword [0x5cc6fc]
add edx, dword [ebp - 0x210]
mov dword [0x5cc6fc], edx
jmp 0x4ec741
mov dword [ebp - 0x21c], 0
jmp 0x4ec7d0
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 2
jae 0x4ec83c
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x42c]
call fcn.004ed6f9
test eax, eax
je 0x4ec801
mov dx, word [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x4ec806
jmp 0x4ec99d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov dword [ebp - 0x210], eax
mov ecx, dword [0x5cc6fc]
shl ecx, 4
mov dword [0x5cc6fc], ecx
mov edx, dword [0x5cc6fc]
add edx, dword [ebp - 0x210]
mov dword [0x5cc6fc], edx
jmp 0x4ec7c1
cmp dword [0x5cc6fc], 0x500
je 0x4ec84d
jmp 0x4ec99b
mov ecx, dword [ebp - 0x42c]
call fcn.004ed660
mov ecx, dword [ebp - 0x42c]
call fcn.004ecc23
jmp 0x4ec93c
mov eax, dword [ebp - 0x22c]
xor ecx, ecx
mov cx, word [eax]
test ecx, ecx
je 0x4ec8a9
mov edx, dword [ebp - 0x22c]
mov ax, word [edx]
push eax
mov ecx, dword [ebp - 0x42c]
call fcn.004ed8ae
test eax, eax
je 0x4ec8a5
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x22c], eax
jmp 0x4ec8a7
jmp 0x4ec8a9
jmp 0x4ec868
mov edx, dword [ebp - 0x22c]
xor eax, eax
mov ax, word [edx]
test eax, eax
jne 0x4ec93c
push 0x34
mov ecx, dword [ebp - 0x42c]
call fcn.004ed8ae
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x42c]
call fcn.004ed660
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x42c]
call fcn.004ed6f9
test eax, eax
je 0x4ec93c
mov dx, word [ebp - 0x218]
push edx
mov ecx, dword [ebp - 0x42c]
call fcn.004ed93b
test eax, eax
je 0x4ec93c
cmp dword [ebp - 0x214], 0
je 0x4ec927
mov dword [0x5cc6fc], 0x400
mov ecx, dword [ebp - 0x42c]
call fcn.004ecc23
jmp 0x4ec93c
mov dword [0x5cc6fc], 0x310
mov ecx, dword [ebp - 0x42c]
call fcn.004ec9aa
jmp 0x4ec977
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.REGEDIT:__CreateFile_failed__GetLastError_____d_n
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x42c]
mov dword [edx + 0x40008], 0
mov eax, dword [ebp - 0x42c]
cmp dword [eax + 0x40008], 0
je 0x4ec999
mov ecx, dword [ebp - 0x42c]
mov edx, dword [ecx + 0x40008]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ec9a3
jmp 0x4ec977
jmp 0x4ec977
jmp 0x4ec977
jmp 0x4ec977
pop edi
mov esp, ebp
pop ebp
ret 4