Function at 0x10028e10
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1208
call fcn.1002c970
mov eax, dword [0x1003ec70]
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.1000b760
mov ecx, eax
test ecx, ecx
je 0x10028e95
cmp ecx, 0xfffffffc
jne 0x10028e71
mov eax, 0xfffff8f1
jmp 0x1002918e
cmp ecx, 0xfffffffe
jne 0x10028e80
mov eax, 0xfffff8ed
jmp 0x1002918e
cmp ecx, 0xfffffffd
mov eax, 0xfffffbf8
mov edx, 0xfffffc01
cmove eax, edx
jmp 0x1002918e
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 0x10028ec1
mov ebx, 0xfffffc02
jmp 0x10029175
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x10028ed3
mov ebx, 0xffffec69
jmp 0x10029175
mov al, byte [esp + 0x20c]
cmp al, 0xff
jne 0x10028ef5
cmp byte [esp + 0x20d], 0xfe
jne 0x10028f10
mov dword [ebx], 0x4b0
xor ebx, ebx
jmp 0x10029175
cmp al, 0xfe
jne 0x10028f10
cmp byte [esp + 0x20d], 0xff
jne 0x10028f10
mov dword [ebx], 0x4b1
xor ebx, ebx
jmp 0x10029175
lea eax, [esp + 0x20c]
cmp byte [eax + ecx - 1], 0
jne 0x10028f21
dec ecx
jne 0x10028f17
mov dword [esp + 0x10], ecx
push esi
cmp ecx, 1
jbe 0x10028f59
lea edx, [esp + 0x210]
mov esi, 1
mov eax, edx
sub esi, eax
jmp 0x10028f40
cmp byte [edx + 1], 0
jne 0x10028f4f
cmp byte [edx], 0
jne 0x100290fc
add edx, 2
lea eax, [esi + edx]
cmp eax, ecx
jb 0x10028f40
cmp dword [esp + 0x1224], 3
mov dword [esp + 0x20], edi
jne 0x100290de
test ecx, ecx
je 0x100290de
lea eax, [esp + 0x210]
push 0x10004c5c
push eax
call fcn.1002d7e0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x10028fad
lea eax, [esp + 0x210]
push 0x10004c64
push eax
call fcn.1002d7e0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x100290dc
push 0x10004c6c
push ebp
call fcn.1002d7e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10028fd9
push 0x10004c74
push ebp
call fcn.1002d7e0
mov esi, eax
add esp, 8
test esi, esi
je 0x100290dc
movsx eax, byte [esi + 7]
add esi, 7
push eax
call fcn.1002db6a
add esp, 4
test eax, eax
jle 0x10029002
lea ecx, [ecx]
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.1002db6a
add esp, 4
test eax, eax
jg 0x10028ff0
cmp byte [esi], 0x3d
jne 0x100290dc
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.1002db6a
add esp, 4
test eax, eax
jle 0x10029032
lea ecx, [ecx]
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.1002db6a
add esp, 4
test eax, eax
jg 0x10029020
mov al, byte [esi]
cmp al, 0x3b
je 0x10029053
cmp al, 0x3e
je 0x10029053
cmp al, 0x22
je 0x10029053
test al, al
je 0x10029053
inc esi
mov byte [esp + edi + 0x90], al
inc edi
mov al, byte [esi]
cmp al, 0x3b
jne 0x10029038
lea ecx, [esp + 0x90]
mov byte [esp + edi + 0x90], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10029065
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 0x100290dc
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 0x100290ca
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 0x10029162
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 0x10029104
mov ebx, 0xfffffc0d
jmp 0x10029174
mov dword [ebx], 0x4b0
jmp 0x10029172
mov eax, dword [esp + 0x10]
shl eax, 4
push eax
push 0
push edi
call fcn.1002c120
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 0x10029162
lea ecx, [edi + 0xc]
cmp dword [ecx], ebp
jle 0x1002915c
mov eax, dword [ecx - 8]
mov dword [ebx], eax
mov ebp, dword [ecx]
add ecx, 0x10
dec edx
jne 0x10029151
cmp dword [ebx], 0x4e9f
jne 0x10029172
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov dword [ebx], eax
xor ebx, ebx
pop esi
push dword [esp + 0x18]
call fcn.1000b1a0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1002918c
push eax
call fcn.1000afb0
mov eax, ebx
mov ecx, dword [esp + 0x1210]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002b4aa
add esp, 0x1208
ret 0xc