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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, dword [esp + 0x78]
push edi
mov dword [esp + 0x24], ebx
call fcn.10155a90
mov ecx, dword [esp + 0x7c]
add eax, 0x20
mov dword [esp + 0x2c], eax
mov dword [ebx + 0x18], 0
call fcn.101552d0
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x30], eax
mov esi, dword [ebp]
mov edi, dword [ebp + 4]
cmp esi, edi
je 0x1005e2f3
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1005e2e6
add dword [ecx + 8], 0xffffffff
jne 0x1005e2e6
mov eax, dword [ecx]
push 1
call dword [eax + 0x18]
add esi, 0x28
cmp esi, edi
jne 0x1005e2d2
mov eax, dword [ebp]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1005e6b1
xor edi, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x30]
lea esi, [ebx + 1]
push ebx
mov dword [esp + 0x2c], esi
call fcn.1013abc0
test al, al
je 0x1005e67d
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
add eax, edi
mov edi, dword [ebp + 4]
mov ebp, dword [ebp]
mov ecx, edi
mov dword [esp + 0x18], eax
sub ecx, ebp
mov eax, 0x66666667
imul ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp dword [esp + 0x28], esi
jae 0x1005e39f
mov eax, dword [esp + 0x20]
add eax, 0x28
add ebp, eax
mov esi, ebp
cmp ebp, edi
je 0x1005e393
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1005e38c
add dword [ecx + 8], 0xffffffff
jne 0x1005e38c
mov eax, dword [ecx]
push 1
call dword [eax + 0x18]
add esi, 0x28
cmp esi, edi
jne 0x1005e378
mov ecx, dword [esp + 0x88]
mov dword [ecx + 4], ebp
jmp 0x1005e3fe
mov ecx, dword [esp + 0x88]
jbe 0x1005e3fe
mov ecx, dword [ecx + 8]
mov eax, 0x66666667
sub ecx, ebp
imul ecx
mov ecx, dword [esp + 0x28]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jbe 0x1005e3e1
lea eax, [esp + 0x13]
push eax
push ecx
mov ecx, dword [esp + 0x90]
call fcn.10045f10
mov ecx, dword [esp + 0x88]
jmp 0x1005e3fe
push dword [esp + 0x88]
sub ecx, esi
push ecx
push edi
call fcn.10046c20
mov ecx, dword [esp + 0x94]
add esp, 0xc
mov dword [ecx + 4], eax
mov esi, dword [ecx]
mov ecx, dword [esp + 0x7c]
add esi, dword [esp + 0x20]
push ebx
call fcn.10155aa0
mov ecx, dword [esp + 0x18]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x60], xmm0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x70], eax
mov byte [esi], 1
mov dword [esi + 4], ecx
mov eax, dword [esp + 0x70]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x24], eax
cmp byte [ecx], 0
jne 0x1005e4cc
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x60]
push ebx
push esi
push eax
lea eax, [esp + 0x44]
push eax
call fcn.100649a0
mov ecx, dword [esp + 0x38]
test ecx, ecx
jne 0x1005e6f5
mov esi, dword [esp + 0x40]
test esi, esi
je 0x1005e4b4
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x1005e499
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x1005e48f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005e6ef
mov eax, edx
push ecx
push eax
call fcn.10174919
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push esi
mov byte [esi], 0
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x1c], ebx
jmp 0x1005e683
mov edi, dword [ecx + 0x1c]
test edi, edi
je 0x1005e551
mov ebp, dword [edi + 0x10]
mov ecx, ebp
mov eax, dword [ebp]
mov eax, dword [eax + 0x24]
call eax
test al, al
je 0x1005e534
mov eax, dword [esp + 0x18]
mov ebx, 4
cmp dword [eax + 4], 0x1406
je 0x1005e5c0
push eax
call fcn.1014f090
mov ebp, dword [ebp + 4]
add esp, 4
mov dword [esp + 0x34], eax
mov ecx, ebp
mov eax, dword [esp + 0x18]
mov edx, dword [ebp]
push 0
push 1
push eax
lea eax, [esp + 0x5c]
push eax
call dword [edx + 0x14]
cmp dword [esp + 0x50], 0
je 0x1005e590
lea ecx, [esp + 0x58]
call fcn.100016b0
mov ebx, dword [esp + 0x1c]
mov eax, 0x10
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x28]
sub eax, 0
je 0x1005e64c
sub eax, 1
jne 0x1005e4b4
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
cmp edi, 0x240
jae 0x1005e83f
mov ebp, dword [esp + 0x88]
mov eax, ebx
shr eax, 5
and ebx, 0x1f
lea edx, [ecx + eax*4]
mov ecx, ebx
mov ebx, dword [esp + 0x28]
mov eax, 1
shl eax, cl
or dword [edx + 0x18], eax
mov dword [esp + 0x1c], ebx
jmp 0x1005e683
mov ebx, dword [esp + 0x5c]
mov eax, 4
push dword [esp + 0x34]
cmp ebx, 4
mov ecx, ebp
cmova ebx, eax
mov eax, dword [ebp]
call dword [eax + 0xc]
lea ecx, [esp + 0x58]
test al, 1
jne 0x1005e52b
call fcn.100016b0
mov eax, dword [esp + 0x18]
push eax
call fcn.1014e2a0
xor edx, edx
add esp, 4
div ebx
test edx, edx
jne 0x1005e530
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x14]
div ebx
test edx, edx
jne 0x1005e530
mov edi, dword [esi + 4]
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1005e5f5
mov ebx, dword [eax + 0x10]
jmp 0x1005e5f7
xor ebx, ebx
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1005e612
add dword [ecx + 8], 0xffffffff
jne 0x1005e60b
mov eax, dword [ecx]
push 1
call dword [eax + 0x18]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], ebx
mov eax, dword [ebx + 8]
push edi
mov dword [esi + 0x20], eax
call fcn.1014e2a0
mov ebx, dword [esp + 0x2c]
add esp, 4
mov ebp, dword [esp + 0x88]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0xc], eax
cmp dword [edi + 0x20], 0
mov edi, dword [esp + 0x14]
sete al
mov dword [esp + 0x1c], ebx
mov byte [esi + 0x10], al
jmp 0x1005e683
push dword [esp + 0x8c]
lea eax, [esp + 0x48]
push dword [esp + 0x88]
push esi
push eax
call fcn.1004bb60
mov ecx, dword [esp + 0x54]
add esp, 0x10
test ecx, ecx
jne 0x1005e713
mov esi, dword [esp + 0x4c]
jmp 0x1005e462
mov ebx, esi
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x2c]
add edi, 0x24
add dword [esp + 0x20], 0x28
mov dword [esp + 0x14], edi
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1005e323
mov edx, dword [esp + 0x24]
xor ecx, ecx
lea edi, [edx + 0x18]
mov eax, edi
nop dword [eax]
cmp dword [eax], 0
jne 0x1005e731
add eax, 4
add ecx, 1
je 0x1005e6c0
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
pop ebx
add esp, 0x64
ret 0x18
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
pop ebx
add esp, 0x64
ret 0x18
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
pop ebx
add esp, 0x64
ret 0x18
push dword [esp + 0x8c]
mov ebx, dword [esp + 0x88]
lea eax, [esp + 0x48]
push ebx
push dword [esp + 0x88]
mov ecx, edx
push edi
push ebp
push eax
call fcn.10064e30
mov ecx, dword [esp + 0x44]
test ecx, ecx
jne 0x1005e713
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x1005e7b3
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x1005e798
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x1005e78e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005e6ef
mov eax, edx
push ecx
push eax
call fcn.10174919
add esp, 8
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [edi]
lea ecx, [esp + 0x44]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x88]
push eax
call fcn.10048300
lea eax, [esp + 0x88]
mov dword [esp + 0x88], 0
push eax
lea ecx, [esp + 0x3c]
call fcn.10048300
mov edi, dword [esp + 0x40]
nop dword [eax]
cmp dword [esp + 0x4c], edi
jne 0x1005e808
lea eax, [esp + 0x44]
mov eax, dword [eax]
lea ecx, [esp + 0x38]
cmp eax, dword [ecx]
je 0x1005e6cd
mov eax, dword [esp + 0x48]
lea ecx, [eax + eax*4]
mov eax, dword [ebp]
mov eax, dword [eax + ecx*8 + 4]
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x1005e834
mov esi, dword [esi + 0x10]
push eax
call fcn.1014e330
imul eax, ebx
add esp, 4
mov ecx, esi
push eax
call fcn.101738a0
lea ecx, [esp + 0x44]
call fcn.1004a3b0
jmp 0x1005e7f0
lea ecx, [ecx + 0x18]
call fcn.1004c9e0
int3