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

Disassembly:
sub esp, 0x868
mov eax, dword [0x100bb300]
xor eax, esp
mov dword [esp + 0x864], eax
mov eax, dword [esp + 0x86c]
push ebx
push ebp
mov dword [esp + 0x54], eax
mov eax, dword [0x100c7a94]
xor ebp, ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], ebp
cmp eax, ebp
jne 0x1003bf08
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
cmp eax, ebp
je 0x1003bf0f
push 0x100aeff8
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a94], eax
cmp eax, ebp
je 0x1003bf0f
lea ecx, [esp + 0x18]
push ecx
call eax
cmp dword [esp + 0x18], ebp
je 0x1003bfc3
mov edx, 8
push esi
mov dword [esp + 0x58], ebp
mov word [esp + 0x64], dx
call dword [sym.imp.OLEAUT32.DLL_SysReAllocString]
mov dword [esp + 0x68], eax
cmp eax, ebp
jne 0x1003bf44
cmp esi, ebp
je 0x1003bf44
push 0x8007000e
call fcn.100830f0
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x18]
mov esi, dword [edx]
lea ecx, [esp + 0x54]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [esp + 0x78]
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x80]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x5c]
push edx
call ecx
lea edx, [esp + 0x60]
push edx
mov esi, eax
call dword [sym.imp.OLEAUT32.DLL_VariantCopy]
cmp esi, ebp
mov eax, dword [esp + 0x18]
jl 0x1003bfb7
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], ebp
mov ecx, dword [eax]
push 0x100abb88
push eax
mov eax, dword [ecx + 0x3c]
call eax
test eax, eax
mov eax, dword [esp + 0x24]
jge 0x1003bfca
cmp eax, ebp
je 0x1003bfb3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x1003bfc3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
jmp 0x1003c463
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ebp
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
push 0x800
lea ecx, [esp + 0x74]
push ebp
push ecx
call fcn.10087b80
mov eax, dword [0x100c6764]
add esp, 0xc
push 0x400
lea edx, [esp + 0x74]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.DLL_PathRemoveFileSpecW]
lea ecx, [esp + 0x70]
push ecx
call esi
lea edx, [esp + 0x70]
push edx
call esi
lea ebx, [esp + 0x70]
lea edi, [esp + 0x20]
call fcn.100036f0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 8]
movzx eax, word [ecx + eax*2 - 2]
cmp ax, 0x5c
je 0x1003c04e
lea eax, [esp + 0x2c]
push eax
mov esi, 1
mov dword [esp + 0x30], 0x5c
call fcn.10011310
xor esi, esi
cmp dword [esp + 0x30], ebp
mov dword [esp + 0x34], esi
jle 0x1003c419
mov edi, edi
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], ebp
mov ecx, dword [eax]
push esi
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebp
mov eax, dword [esp + 0x28]
jl 0x1003c3fe
mov dword [esp + 0x14], ebp
cmp eax, ebp
je 0x1003c09b
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x100ab958
push eax
mov eax, dword [ecx]
call eax
push 0x100c5a78
push 0x24
call fcn.10085206
add esp, 8
cmp eax, ebp
je 0x1003c3ea
call fcn.1003c480
mov ebp, eax
mov dword [esp + 0x58], ebp
test ebp, ebp
je 0x1003c3e8
add esi, 0x44c
mov word [ebp], si
mov edi, 0x100a85fc
lea ebx, [esp + 0x40]
lea esi, [esp + 0x14]
call fcn.10037030
lea ecx, [ebp + 4]
mov edi, eax
mov eax, ecx
call fcn.10003840
mov eax, dword [esp + 0x40]
lea edx, [eax - 0xc]
cmp edx, 0x100bc65c
je 0x1003c11a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x1003c11a
mov eax, dword [esp + 0x40]
add eax, 0xfffffff4
push eax
call fcn.1008441c
add esp, 4
mov edi, 0x100abbac
lea ebx, [esp + 0x3c]
lea esi, [esp + 0x14]
call fcn.10037030
mov eax, dword [eax]
mov edx, dword [eax - 8]
mov ecx, dword [0x100bc66c]
push eax
mov eax, dword [esp + 0x24]
push edx
push eax
mov eax, dword [eax - 8]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], ecx
call fcn.10011280
lea eax, [ebp + 8]
lea edi, [esp + 0x1c]
call fcn.10003840
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x100bc65c
je 0x1003c181
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x1003c181
push esi
call fcn.1008441c
add esp, 4
mov eax, dword [esp + 0x3c]
lea edx, [eax - 0xc]
cmp edx, 0x100bc65c
je 0x1003c1ae
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x1003c1ae
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff4
push eax
call fcn.1008441c
add esp, 4
mov edi, 0x100ab794
lea ebx, [esp + 0x38]
lea esi, [esp + 0x14]
call fcn.10037030
lea ecx, [ebp + 0xc]
mov edi, eax
mov eax, ecx
call fcn.10003840
mov eax, dword [esp + 0x38]
lea edx, [eax - 0xc]
cmp edx, 0x100bc65c
je 0x1003c1f9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x1003c1f9
mov eax, dword [esp + 0x38]
add eax, 0xfffffff4
push eax
call fcn.1008441c
add esp, 4
mov edi, 0x100ab7a0
lea ebx, [esp + 0x50]
lea esi, [esp + 0x14]
call fcn.10037030
lea ecx, [ebp + 0x10]
mov edi, eax
mov eax, ecx
call fcn.10003840
mov eax, dword [esp + 0x50]
lea edx, [eax - 0xc]
cmp edx, 0x100bc65c
je 0x1003c244
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x1003c244
mov eax, dword [esp + 0x50]
add eax, 0xfffffff4
push eax
call fcn.1008441c
add esp, 4
mov edi, 0x100ab7ac
lea ebx, [esp + 0x4c]
lea esi, [esp + 0x14]
call fcn.10037030
mov ebx, dword [eax]
call fcn.1003c5e0
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x4c]
lea ecx, [eax - 0xc]
cmp ecx, 0x100bc65c
je 0x1003c28d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x1003c28d
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff4
push eax
call fcn.1008441c
add esp, 4
mov edi, 0x100ab7c4
lea ebx, [esp + 0x44]
lea esi, [esp + 0x14]
call fcn.10037030
mov eax, dword [eax]
mov edx, dword [0x100bc66c]
push eax
mov eax, dword [eax - 8]
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 8]
push eax
push ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], edx
call fcn.10011280
lea eax, [ebp + 0x18]
lea edi, [esp + 0x1c]
call fcn.10003840
mov eax, dword [esp + 0x1c]
lea edx, [eax - 0xc]
cmp edx, 0x100bc65c
je 0x1003c2f4
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x1003c2f4
push esi
call fcn.1008441c
add esp, 4
mov eax, dword [esp + 0x44]
lea ecx, [eax - 0xc]
cmp ecx, 0x100bc65c
je 0x1003c321
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x1003c321
mov edx, dword [esp + 0x44]
add edx, 0xfffffff4
push edx
call fcn.1008441c
add esp, 4
mov edi, 0x100ab7dc
lea ebx, [esp + 0x48]
lea esi, [esp + 0x14]
call fcn.10037030
lea ecx, [ebp + 0x1c]
mov edi, eax
mov eax, ecx
call fcn.10003840
mov eax, dword [esp + 0x48]
lea edx, [eax - 0xc]
cmp edx, 0x100bc65c
je 0x1003c36c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x1003c36c
mov eax, dword [esp + 0x48]
add eax, 0xfffffff4
push eax
call fcn.1008441c
add esp, 4
mov edi, 0x100ab7f4
lea ebx, [esp + 0x2c]
lea esi, [esp + 0x14]
call fcn.10037030
lea ecx, [ebp + 0x20]
mov edi, eax
mov eax, ecx
call fcn.10003840
mov eax, dword [esp + 0x2c]
lea edx, [eax - 0xc]
cmp edx, 0x100bc65c
je 0x1003c3b7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x1003c3b7
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff4
push eax
call fcn.1008441c
add esp, 4
mov esi, ebp
call fcn.1003c6a0
test eax, eax
je 0x1003c3d4
mov edi, dword [esp + 0x5c]
add edi, 0x2c
lea ebx, [esp + 0x58]
call fcn.10055610
jmp 0x1003c3e4
mov esi, ebp
call fcn.1003c4c0
push ebp
call fcn.10083db0
add esp, 4
mov esi, dword [esp + 0x34]
xor ebp, ebp
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x1003c3fa
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x1003c40a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
inc esi
cmp esi, dword [esp + 0x30]
mov dword [esp + 0x34], esi
jl 0x1003c060
mov esi, dword [esp + 0x20]
lea eax, [esi - 0xc]
cmp eax, 0x100bc65c
je 0x1003c43e
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x1003c43e
push esi
call fcn.1008441c
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x1003c44e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x1003c45e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
mov ecx, dword [esp + 0x874]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10083dbb
add esp, 0x868
ret 4