Function at 0x4ee30d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
pop eax
push eax
push ebx
xor eax, eax
inc eax
push eax
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x4ee54f
cmp esi, 0xffffffff
je 0x4ee54f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x4ee536
cmp ebx, dword [ebp + 0xc]
jae 0x4ee536
lea ecx, [ebx + 5]
push ecx
call fcn.004e1c0a
mov edi, eax
pop ecx
test edi, edi
jne 0x4ee37c
push 0xfffffffffffffffd
jmp 0x4ee543
xor eax, eax
push eax
mov dword [edi + ebx], eax
mov byte [edi + ebx + 4], al
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
push dword [ebp - 0xc]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4ee528
mov ecx, dword [ebp - 4]
cmp ecx, ebx
jne 0x4ee528
mov esi, dword [ebp + 0x1c]
cmp esi, 0xffffffff
jne 0x4ee3d8
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
xor eax, eax
jmp 0x4ee55d
cmp esi, 0xfde9
je 0x4ee494
mov al, byte [edi]
cmp al, 0xef
jne 0x4ee3fa
cmp byte [edi + 1], 0xbb
jne 0x4ee3fa
cmp byte [edi + 2], 0xbf
je 0x4ee494
cmp esi, 0x4b0
je 0x4ee45d
cmp al, 0xff
jne 0x4ee40c
cmp byte [edi + 1], 0xfe
je 0x4ee467
lea eax, [ebx + 2]
push 2
push eax
call fcn.004e1c42
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
lea ecx, [ebx + 1]
push ecx
push eax
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
js 0x4ee43c
cmp esi, ebx
jle 0x4ee4f0
push edi
call fcn.004e1bea
mov ebx, dword [ebp + 0x10]
pop ecx
cmp dword [ebx], 0
je 0x4ee456
push dword [ebx]
call fcn.004e1bea
and dword [ebx], 0
pop ecx
push 0xfffffffffffffff8
jmp 0x4ee525
cmp al, 0xff
jne 0x4ee487
cmp byte [edi + 1], 0xfe
jne 0x4ee487
lea eax, [edi + 2]
push 0
push eax
lea esi, [ebx - 2]
call fcn.004e230a
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test eax, eax
jne 0x4ee490
push 0xfffffffffffffff9
jmp 0x4ee52a
mov eax, dword [ebp + 0x10]
mov esi, ebx
mov dword [eax], edi
xor edi, edi
shr esi, 1
jmp 0x4ee4f0
cmp byte [edi], 0xef
jne 0x4ee4a5
cmp byte [edi + 1], 0xbb
jne 0x4ee4a5
cmp byte [edi + 2], 0xbf
je 0x4ee4a9
mov byte [ebp - 8], 0
lea eax, [ebx + 2]
push 2
push eax
call fcn.004e1c42
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test eax, eax
jne 0x4ee4c3
push 0xfffffffffffffffb
jmp 0x4ee52a
push 3
pop edx
push ebx
push eax
xor ecx, ecx
mov eax, ebx
cmp byte [ebp - 8], cl
cmovne ecx, edx
sub eax, ecx
push eax
lea eax, [ecx + edi]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
js 0x4ee509
cmp esi, ebx
jg 0x4ee509
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
test edi, edi
je 0x4ee3d1
push edi
call fcn.004e1bea
pop ecx
jmp 0x4ee3d1
push edi
call fcn.004e1bea
mov ebx, dword [ebp + 0x10]
pop ecx
cmp dword [ebx], 0
je 0x4ee523
push dword [ebx]
call fcn.004e1bea
and dword [ebx], 0
pop ecx
push 0xfffffffffffffffa
pop eax
jmp 0x4ee55d
push 0xfffffffffffffffc
pop esi
push edi
call fcn.004e1bea
pop ecx
mov eax, esi
jmp 0x4ee55d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
push 0xfffffffffffffffe
mov dword [ecx], eax
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x4ee55d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret