Function at 0x100430c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x858
mov eax, dword [0x1009020]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov dword [ebp - 0x818], eax
movzx eax, word [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, eax
shl ebx, 2
push ebx
push 0x40
mov dword [ebp - 0x808], edi
mov dword [ebp - 0x80c], 1
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x81c], eax
jne 0x1004363
xor eax, eax
jmp 0x1004631
push esi
push esi
push 0x38
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call edi
push esi
lea eax, [ebp - 0x814]
push eax
push ebx
push dword [ebp - 0x81c]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x808]
call ebx
movzx eax, word [ebp + 0xc]
lea eax, [eax + eax - 1]
push eax
push dword [ebp - 0x818]
call fcn.01006ac8
movzx eax, word [ebp + 0xc]
cmp eax, esi
mov dword [ebp - 0x810], esi
jbe 0x100461f
push dword [ebp - 0x810]
call fcn.01006771
mov eax, dword [ebp - 0x81c]
mov ecx, dword [ebp - 0x810]
mov word [ebp - 0x604], si
mov word [ebp - 0x804], si
mov word [ebp - 0x404], si
mov word [ebp - 0x834], si
mov eax, dword [eax + ecx*4]
cmp eax, esi
je 0x100452f
cmp eax, dword [ebp + 0x10]
ja 0x10044cb
push esi
push esi
push eax
push dword [ebp - 0x808]
call edi
push esi
lea eax, [ebp - 0x814]
push eax
push 0x20
lea eax, [ebp - 0x83c]
push eax
push dword [ebp - 0x808]
call ebx
cmp dword [ebp - 0x814], 0x20
jne 0x10044cb
push dword [ebp + 0x10]
lea eax, [ebp - 0x83c]
push eax
call fcn.010032a9
test eax, eax
je 0x10044cb
push esi
push esi
push dword [ebp - 0x828]
push dword [ebp - 0x808]
call edi
push esi
lea eax, [ebp - 0x814]
push eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x808]
call ebx
cmp word [ebp - 0x204], si
je 0x10044cb
lea eax, [ebp - 0x204]
push eax
push 0x100
lea eax, [ebp - 0x604]
push eax
call fcn.0100252f
push esi
push esi
push dword [ebp - 0x824]
push dword [ebp - 0x808]
call edi
push esi
lea eax, [ebp - 0x814]
push eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x808]
call ebx
cmp word [ebp - 0x204], si
jne 0x10044d3
mov word [ebp - 0x604], si
mov dword [ebp - 0x80c], esi
jmp 0x100452f
lea eax, [ebp - 0x204]
push eax
push 0x100
lea eax, [ebp - 0x804]
push eax
call fcn.0100252f
push esi
push esi
push dword [ebp - 0x820]
push dword [ebp - 0x808]
call edi
push esi
lea eax, [ebp - 0x814]
push eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x808]
call ebx
lea eax, [ebp - 0x204]
push eax
push 0x100
lea eax, [ebp - 0x404]
push eax
call fcn.0100252f
lea eax, [ebp - 0x858]
push eax
call fcn.010034f3
cmp word [ebp - 0x604], si
je 0x10045f0
push esi
push esi
lea eax, [ebp - 0x604]
push eax
call fcn.010030ac
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x858]
push eax
call dword [sym.imp.COMCTL32.dll_Str_SetPtrW]
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x850]
push eax
call dword [sym.imp.COMCTL32.dll_Str_SetPtrW]
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.COMCTL32.dll_Str_SetPtrW]
mov eax, dword [ebp - 0x82e]
cmp ax, si
mov dword [ebp - 0x818], eax
jne 0x10045e2
cmp word [ebp - 0x404], si
jne 0x10045ca
lea eax, [ebp - 0x404]
push eax
push esi
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHELL32.dll_FindExecutableW]
cmp word [ebp - 0x404], si
je 0x10045e2
push dword [ebp - 0x834]
lea eax, [ebp - 0x404]
push eax
call fcn.010037ec
mov dword [ebp - 0x818], eax
mov ax, word [ebp - 0x818]
mov word [ebp - 0x848], ax
lea eax, [ebp - 0x858]
push eax
push dword [ebp - 0x810]
push dword [0x1009270]
call dword [sym.imp.COMCTL32.dll_DSA_InsertItem]
movzx eax, word [ebp + 0xc]
inc dword [ebp - 0x810]
cmp dword [ebp - 0x810], eax
jb 0x10043b3
push dword [ebp - 0x81c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100815d
leave
ret 0x14