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

Disassembly:
push 0xffffffffffffffff
push 0x1004b420
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10077990]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x14], 0
push edi
lea ecx, [esp + 0x38]
call fcn.100040d0
push edi
push edi
mov dword [esp + 0x5c], edi
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov esi, dword [esp + 0x5c]
add esi, 0x18
push esi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x5c]
mov byte [esp + 0x54], 1
test byte [ecx + 0x10], 1
je 0x1000161e
mov ecx, dword [ecx + 8]
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
je 0x1000161a
mov ebx, dword [esp + 0x5c]
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, eax
call fcn.10039c70
cmp eax, 1
jne 0x10001616
mov edi, 0x8000ffff
jmp 0x10001aa3
mov ecx, ebx
jmp 0x1000161e
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x10001630
mov edi, 0x80070057
jmp 0x10001a9f
mov ebp, dword [esp + 0x64]
mov dword [eax], 0
test ebp, ebp
je 0x1000164f
cmp dword [esp + 0x68], 0
jne 0x1000164f
mov edi, 0x80070057
jmp 0x10001a9f
mov ebx, dword [ecx + 0x10]
and ebx, 1
jne 0x10001665
test ebp, ebp
jne 0x10001665
mov edi, 0x80040e49
jmp 0x10001a9f
mov eax, dword [esp + 0x60]
test eax, eax
je 0x10001a9a
test eax, 0xfffffff0
jne 0x10001a9a
test eax, 0xfffffff9
je 0x1000168b
test al, 6
je 0x10001a9a
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x24]
push edx
push eax
push ecx
call fcn.10001b90
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10001a9a
cmp ecx, 2
je 0x10001a93
cmp dword [esp + 0x20], 2
je 0x10001a93
mov eax, dword [esp + 0x60]
test ebx, ebx
je 0x100016d1
test al, 4
jne 0x10001a9a
mov ebx, dword [esp + 0x74]
xor edx, edx
mov dword [esp + 0x18], edx
test ebp, ebp
je 0x10001885
mov ebp, dword [esp + 0x68]
mov esi, 0x4000
and eax, 4
mov dword [esp + 0x74], 0xc000
mov dword [esp + 0x28], eax
add ebp, 0x30
lea ecx, [esi + 1]
test ebx, ebx
je 0x1000170c
mov dword [ebx + edx*4], 0
cmp dword [ebp - 0x30], 0
jne 0x10001726
test eax, eax
je 0x1000176b
test ebx, ebx
je 0x10001721
mov dword [ebx + edx*4], 1
mov edi, 0x80040e21
test eax, eax
je 0x1000176b
test byte [ebp - 0xc], 1
je 0x1000176b
push dword [ebp - 0x30]
lea ecx, [esp + 0x38]
call fcn.100042c0
test eax, eax
jne 0x10001756
mov edx, dword [esp + 0x18]
test ebx, ebx
je 0x1000174f
mov dword [ebx + edx*4], 3
mov edi, 0x80040e21
jmp 0x10001766
push dword [ebp - 0x30]
lea ecx, [esp + 0x38]
call fcn.10004270
mov edx, dword [esp + 0x18]
mov ecx, 0x4001
mov eax, dword [ebp - 0x14]
test al, 7
je 0x10001779
test eax, 0xfffffff8
je 0x10001789
test ebx, ebx
je 0x10001784
mov dword [ebx + edx*4], 3
mov edi, 0x80040e21
test byte [ebp - 0x14], 1
je 0x10001801
cmp word [ebp], 0
jne 0x100017a6
test ebx, ebx
je 0x100017a1
mov dword [ebx + edx*4], 3
mov edi, 0x80040e21
test byte [ebp - 0x14], 1
je 0x10001801
movzx eax, word [ebp]
cmp ax, si
je 0x100017f1
cmp ax, cx
je 0x100017f1
cmp eax, 1
je 0x100017f1
cmp ax, word [esp + 0x74]
je 0x100017f1
mov ecx, eax
and ecx, 0x2000
je 0x100017d7
test eax, 0x4000
jne 0x100017f1
test cx, cx
je 0x100017e3
test eax, 0x1000
jne 0x100017f1
test eax, 0x4000
je 0x10001801
test eax, 0x1000
je 0x10001801
test ebx, ebx
je 0x100017fc
mov dword [ebx + edx*4], 3
mov edi, 0x80040e21
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1000181f
cmp dword [ebp - 0xc], 1
je 0x1000181f
test ebx, ebx
je 0x1000181a
mov dword [ebx + edx*4], 3
mov edi, 0x80040e21
cmp dword [ebp - 0x10], 0
je 0x10001835
test ebx, ebx
je 0x10001830
mov dword [ebx + edx*4], 3
mov edi, 0x80040e21
mov ecx, 0xd
cmp cx, word [ebp]
jne 0x10001856
cmp dword [ebp - 0x1c], 0
jne 0x10001856
test ebx, ebx
je 0x10001851
mov dword [ebx + edx*4], 3
mov edi, 0x80040e21
inc edx
add ebp, 0x34
mov ecx, 0x4001
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x64]
jb 0x10001701
mov esi, dword [esp + 0x2c]
cmp edi, 0x80040e21
je 0x10001920
mov ebp, dword [esp + 0x64]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x5c]
test byte [edi + 0x10], 2
je 0x100018cc
push dword [esp + 0x20]
lea eax, [esp + 0x68]
push eax
push ebx
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x78]
push ebp
push ebx
push ecx
push edi
call 0x10088fcb
mov edi, eax
test edi, edi
js 0x10001a9f
cmp dword [esp + 0x64], 0
mov eax, 2
mov edi, dword [esp + 0x5c]
cmovne ebx, eax
jmp 0x100018d0
mov ebx, dword [esp + 0x24]
test ebp, ebp
je 0x100018d9
lea eax, [ebp - 1]
jmp 0x100018db
xor eax, eax
imul eax, eax, 0x34
add eax, 0x5c
push eax
call fcn.1003db99
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x100018fc
mov edi, 0x8007000e
jmp 0x10001a9f
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x18]
push eax
push dword [edi + 0x14]
call fcn.10010c80
mov edi, eax
test edi, edi
jns 0x1000192d
push dword [esp + 0x14]
call fcn.1003db94
add esp, 4
test edi, edi
jns 0x10001ab8
jmp 0x10001a9f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x68]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ebx
mov eax, dword [esp + 0x14]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], 0
mov eax, dword [esp + 0x14]
mov dword [eax + 0x14], 1
mov eax, dword [esp + 0x14]
mov dword [eax + 0x24], ebp
mov eax, dword [esp + 0x14]
mov dword [eax + 0x18], 0
mov eax, dword [esp + 0x14]
mov dword [eax + 0x1c], ecx
test ebp, ebp
je 0x100019a4
imul eax, ebp, 0x34
push eax
mov eax, dword [esp + 0x18]
add eax, 0x28
push edi
push eax
call fcn.1003e000
add esp, 0xc
cmp ebx, 3
jne 0x10001a07
test ebp, ebp
je 0x10001a07
xor ecx, ecx
mov eax, ebp
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003db99
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x20], 0
jne 0x100019e3
mov edi, 0x8007000e
jmp 0x10001a9f
xor edx, edx
test ebp, ebp
je 0x10001a12
lea esp, [esp]
mov eax, dword [esp + 0x14]
lea edi, [edi + 0x34]
mov ecx, dword [eax + 0x20]
mov eax, dword [edi - 0x34]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, ebp
jb 0x100019f0
jmp 0x10001a12
mov eax, dword [esp + 0x14]
mov dword [eax + 0x20], 0
xor ebx, ebx
test ebp, ebp
je 0x10001a85
xor edi, edi
mov ecx, 0xd
nop
mov eax, dword [esp + 0x68]
cmp cx, word [eax + edi + 0x30]
jne 0x10001a71
cmp dword [eax + edi + 0x14], 0
je 0x10001a71
push 0x14
call fcn.1003d386
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [edi + ecx + 0x3c], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + eax + 0x3c]
test ecx, ecx
je 0x100018f2
mov eax, dword [esp + 0x68]
mov eax, dword [eax + edi + 0x14]
movdqu xmm0, xmmword [eax]
movdqu xmmword [ecx], xmm0
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x10], eax
mov ecx, 0xd
jmp 0x10001a7d
mov eax, dword [esp + 0x14]
mov dword [edi + eax + 0x3c], 0
inc ebx
add edi, 0x34
cmp ebx, ebp
jb 0x10001a20
mov ecx, dword [esp + 0x70]
xor edi, edi
mov eax, dword [esp + 0x30]
mov dword [ecx], eax
jmp 0x10001ab8
mov edi, 0x80040e48
jmp 0x10001a9f
mov edi, 0x80040e46
mov ebx, dword [esp + 0x5c]
mov eax, dword [ebx + 0x10]
push 0x10068c28
push edi
and eax, 1
push eax
push dword [ebx + 8]
call fcn.10010620
test esi, esi
je 0x10001ac3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x34]
mov dword [esp + 0x54], 0xffffffff
call fcn.10004100
mov eax, edi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x1c