Function at 0x4ee1ac
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4ee486
push dword fs:[eax]
mov dword fs:[eax], esp
cmp edi, 0xffffffff
jne 0x4ee1f7
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0xfffffff6
xor ebx, ebx
jmp 0x4ee46b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4ee455
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
jne 0x4ee23f
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0xfffffff6
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ee46b
mov esi, 0x19
push 0
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push edi
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4ee264
cmp esi, dword [ebp - 0x10]
je 0x4ee27d
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0xfffffff6
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ee46b
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x2c]
mov ecx, 5
call fcn.00404508
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00408770
mov eax, dword [ebp - 0x30]
mov edx, 0x4ee4a0
call fcn.004046a4
jne 0x4ee43f
lea eax, [ebp - 0x38]
push eax
mov ecx, 4
mov edx, 1
mov eax, ebx
call fcn.004047b8
mov eax, dword [ebp - 0x38]
call fcn.00408d64
sub eax, 0x7d0
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x3c]
push eax
mov ecx, 2
mov edx, 6
mov eax, ebx
call fcn.004047b8
mov eax, dword [ebp - 0x3c]
call fcn.00408d64
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x40]
push eax
mov ecx, 2
mov edx, 9
mov eax, ebx
call fcn.004047b8
mov eax, dword [ebp - 0x40]
call fcn.00408d64
mov ebx, eax
lea eax, [ebp - 0x44]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.004047b8
mov eax, dword [ebp - 0x44]
call fcn.00408d64
mov byte [ebp - 0x13], al
lea eax, [ebp - 0x48]
push eax
mov ecx, 2
mov edx, 4
mov eax, dword [ebp - 0xc]
call fcn.004047b8
mov eax, dword [ebp - 0x48]
call fcn.00408d64
mov dl, byte [ebp - 0x11]
cmp dl, byte [ebp - 0x1a]
jne 0x4ee377
mov dl, byte [ebp - 0x12]
cmp dl, byte [ebp - 0x19]
jne 0x4ee377
cmp bl, byte [ebp - 0x18]
jne 0x4ee377
mov dl, byte [ebp - 0x13]
cmp dl, byte [ebp - 0x17]
jne 0x4ee377
cmp al, byte [ebp - 0x16]
jne 0x4ee377
cmp word [ebp - 0x27], 0
ja 0x4ee37b
xor eax, eax
jmp 0x4ee37d
mov al, 1
test al, al
je 0x4ee431
movzx eax, word [ebp - 0x27]
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 0xc]
add eax, 0x19
dec eax
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
xor eax, eax
mov al, byte [ebp - 0x21]
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], eax
mov ax, word [ebp - 0x25]
cmp ax, 0x8000
jb 0x4ee3c2
cmp word [ebp - 0x23], 0x8000
jb 0x4ee3c2
mov eax, dword [ebp + 8]
mov byte [eax + 0x14], 3
jmp 0x4ee3e9
cmp ax, 0x8000
jb 0x4ee3d1
mov eax, dword [ebp + 8]
mov byte [eax + 0x14], 1
jmp 0x4ee3e9
cmp word [ebp - 0x23], 0x8000
jb 0x4ee3e2
mov eax, dword [ebp + 8]
mov byte [eax + 0x14], 2
jmp 0x4ee3e9
mov eax, dword [ebp + 8]
mov byte [eax + 0x14], 4
mov ax, word [ebp - 0x25]
cmp ax, 0x8000
jb 0x4ee402
movzx eax, ax
sub eax, 0x8000
mov edx, dword [ebp + 8]
mov dword [edx], eax
jmp 0x4ee40a
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov ax, word [ebp - 0x23]
cmp ax, 0x8000
jb 0x4ee424
movzx eax, ax
sub eax, 0x8000
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
jmp 0x4ee42d
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
mov bl, 1
jmp 0x4ee44b
xor ebx, ebx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0xfffffff5
jmp 0x4ee44b
xor ebx, ebx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0xfffffff5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ee46b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ee48d
lea eax, [ebp - 0x48]
mov edx, 7
call fcn.004042bc
ret