Function at 0x1008caa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov dword [ebp - 0x40], edx
mov edi, ecx
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov eax, dword [0x1038100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
test eax, eax
jne 0x1008cac7
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x48], eax
push dword [eax]
call fcn.10228be0
add esp, 4
push eax
call fcn.10228810
add esp, 4
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], ebx
lea ecx, [esi + 0x18]
lea ebx, [esi + 0x50]
mov edx, dword [esi]
test edx, edx
cmove ecx, ebx
xor ebx, ebx
cmp dword [ecx], 0
mov dword [ebp - 0x38], eax
setne bl
movzx eax, byte [esi + 0x3c]
movzx ecx, byte [esi + 4]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x1c]
push ebx
push eax
push dword [esi + 0x38]
push dword [ebp - 0x34]
call fcn.1008c770
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp eax, ecx
je 0x1008cb2a
mov ecx, dword [ecx - 4]
jmp 0x1008cb2d
xor ecx, ecx
inc ecx
mov dword [ebp - 0x3c], ecx
test eax, eax
mov esi, dword [ebp + 8]
je 0x1008cb52
mov ecx, dword [ebp - 0x14]
sub ecx, eax
cmp ecx, 0x1000
jae 0x1008cc62
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
cmp dword [ebp - 0x3c], 0
je 0x1008cc50
lea eax, [edi + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x48]
add eax, 8
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x40]
lea eax, [esi + eax*4]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x38]
lea eax, [eax*4]
mov dword [ebp - 0x4c], eax
xor esi, esi
mov eax, dword [ebp + 0x10]
mov ecx, eax
cmp byte [eax + 0x78], 0
sete al
mov ecx, dword [ecx + 0x74]
cmp ecx, 0xffffffff
sete dl
mov dword [ebp - 0x34], esi
cmp esi, ecx
sete cl
cmp dword [ebp - 0x38], 0
je 0x1008cc3d
or al, dl
or cl, al
je 0x1008cc3d
mov eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x58], eax
xor esi, esi
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x58]
add eax, esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 0x1c], 0xf
mov eax, dword [ebp - 0x54]
jbe 0x1008cbe6
mov eax, dword [ecx + 8]
push eax
call fcn.10228e40
add esp, 4
test al, al
jne 0x1008cc1f
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
cmp edx, eax
je 0x1008cc10
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x10], ecx
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [eax], xmm0
add dword [edi + 0x10], 0x14
jmp 0x1008cc1f
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x30]
push eax
call fcn.10091160
add esp, 4
mov eax, ebx
mov edx, dword [ebp + 0xc]
mov ecx, edx
test edx, edx
je 0x1008cc34
mov edx, dword [edi]
mov byte [edx + eax], 1
inc eax
dec ecx
jne 0x1008cc2a
inc esi
add ebx, 4
cmp esi, dword [ebp - 0x38]
jne 0x1008cbc6
mov esi, dword [ebp - 0x34]
inc esi
mov eax, dword [ebp - 0x4c]
add dword [ebp - 0x44], eax
cmp esi, dword [ebp - 0x3c]
jne 0x1008cb83
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1021e470
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1008cc79
mov eax, ecx
mov esi, dword [ebp + 8]
jmp 0x1008cb48
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3