Function at 0x10028e40
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1208
call fcn.1002c9a0
mov eax, dword [0x1003ec80]
xor eax, esp
mov dword [esp + 0x1204], eax
mov eax, dword [esp + 0x120c]
lea ecx, [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x1214]
push ebp
push edi
push ecx
push 0x10
xor edi, edi
mov dword [esp + 0x14], 0x64
push eax
mov dword [esp + 0x20], 0
xor ebp, ebp
mov dword [ebx], edi
call fcn.1000b770
mov ecx, eax
test ecx, ecx
je 0x10028ec5
cmp ecx, 0xfffffffc
jne 0x10028ea1
mov eax, 0xfffff8f1
jmp 0x100291be
cmp ecx, 0xfffffffe
jne 0x10028eb0
mov eax, 0xfffff8ed
jmp 0x100291be
cmp ecx, 0xfffffffd
mov eax, 0xfffffbf8
mov edx, 0xfffffc01
cmove eax, edx
jmp 0x100291be
push 0
lea eax, [esp + 0x14]
push eax
push 0x1000
lea eax, [esp + 0x218]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10028ef1
mov ebx, 0xfffffc02
jmp 0x100291a5
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x10028f03
mov ebx, 0xffffec69
jmp 0x100291a5
mov al, byte [esp + 0x20c]
cmp al, 0xff
jne 0x10028f25
cmp byte [esp + 0x20d], 0xfe
jne 0x10028f40
mov dword [ebx], 0x4b0
xor ebx, ebx
jmp 0x100291a5
cmp al, 0xfe
jne 0x10028f40
cmp byte [esp + 0x20d], 0xff
jne 0x10028f40
mov dword [ebx], 0x4b1
xor ebx, ebx
jmp 0x100291a5
lea eax, [esp + 0x20c]
cmp byte [eax + ecx - 1], 0
jne 0x10028f51
dec ecx
jne 0x10028f47
mov dword [esp + 0x10], ecx
push esi
cmp ecx, 1
jbe 0x10028f89
lea edx, [esp + 0x210]
mov esi, 1
mov eax, edx
sub esi, eax
jmp 0x10028f70
cmp byte [edx + 1], 0
jne 0x10028f7f
cmp byte [edx], 0
jne 0x1002912c
add edx, 2
lea eax, [esi + edx]
cmp eax, ecx
jb 0x10028f70
cmp dword [esp + 0x1224], 3
mov dword [esp + 0x20], edi
jne 0x1002910e
test ecx, ecx
je 0x1002910e
lea eax, [esp + 0x210]
push 0x10004c4c
push eax
call fcn.1002d810
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x10028fdd
lea eax, [esp + 0x210]
push 0x10004c54
push eax
call fcn.1002d810
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1002910c
push 0x10004c5c
push ebp
call fcn.1002d810
mov esi, eax
add esp, 8
test esi, esi
jne 0x10029009
push 0x10004c64
push ebp
call fcn.1002d810
mov esi, eax
add esp, 8
test esi, esi
je 0x1002910c
movsx eax, byte [esi + 7]
add esi, 7
push eax
call fcn.1002db9a
add esp, 4
test eax, eax
jle 0x10029032
lea ecx, [ecx]
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.1002db9a
add esp, 4
test eax, eax
jg 0x10029020
cmp byte [esi], 0x3d
jne 0x1002910c
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.1002db9a
add esp, 4
test eax, eax
jle 0x10029062
lea ecx, [ecx]
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.1002db9a
add esp, 4
test eax, eax
jg 0x10029050
mov al, byte [esi]
cmp al, 0x3b
je 0x10029083
cmp al, 0x3e
je 0x10029083
cmp al, 0x22
je 0x10029083
test al, al
je 0x10029083
inc esi
mov byte [esp + edi + 0x90], al
inc edi
mov al, byte [esi]
cmp al, 0x3b
jne 0x10029068
lea ecx, [esp + 0x90]
mov byte [esp + edi + 0x90], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10029095
push 0x80
sub ecx, edx
lea eax, [esp + 0x114]
push eax
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x9c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x1002910c
mov eax, dword [0x1003ffa4]
lea edx, [esp + 0x24]
push edx
push esi
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jne 0x100290fa
mov eax, dword [esp + 0x28]
mov dword [ebx], eax
mov dword [esp + 0x20], 1
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [esp + 0x20], 0
jne 0x10029192
xor ebp, ebp
mov eax, dword [esp + 0x10]
shl eax, 4
push eax
call fcn.1000ae30
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
jne 0x10029134
mov ebx, 0xfffffc0d
jmp 0x100291a4
mov dword [ebx], 0x4b0
jmp 0x100291a2
mov eax, dword [esp + 0x10]
shl eax, 4
push eax
push 0
push edi
call fcn.1002c150
mov eax, dword [0x1003ffa4]
lea edx, [esp + 0x1c]
add esp, 0xc
mov ecx, dword [eax]
push edx
push edi
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x21c]
push edx
push 0
push 4
push eax
mov eax, dword [ecx + 0x58]
call eax
mov edx, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
cmovne edx, ecx
mov dword [esp + 0x10], edx
test edx, edx
jle 0x10029192
lea ecx, [edi + 0xc]
cmp dword [ecx], ebp
jle 0x1002918c
mov eax, dword [ecx - 8]
mov dword [ebx], eax
mov ebp, dword [ecx]
add ecx, 0x10
dec edx
jne 0x10029181
cmp dword [ebx], 0x4e9f
jne 0x100291a2
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov dword [ebx], eax
xor ebx, ebx
pop esi
push dword [esp + 0x18]
call fcn.1000b1b0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100291bc
push eax
call fcn.1000afc0
mov eax, ebx
mov ecx, dword [esp + 0x1210]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002b4da
add esp, 0x1208
ret 0xc