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

Disassembly:
push 0xffffffffffffffff
push 0x46ec30
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b914]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x94], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x1c], ebp
push ebp
lea eax, [esp + 0x38]
push eax
push 9
push 2
push 0xcb
push ecx
mov byte [esp + 0xac], 3
call fcn.0043f6c3
mov esi, dword [esp + 0x4c]
add esp, 0x18
mov dword [esp + 0x3c], esi
cmp esi, ebp
je 0x408d0d
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [esp + 0x1c]
push edx
push 0x47ae60
push esi
mov dword [esp + 0x44], esi
call eax
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jne 0x408d6e
mov byte [esp + 0x94], 1
mov ecx, dword [esi]
push esi
jmp 0x408d20
mov byte [esp + 0x94], 2
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x408d25
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov byte [esp + 0x94], 0
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x408d3d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
or ebx, 0xffffffff
mov dword [esp + 0x94], ebx
mov eax, dword [esp + 0x9c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x408d67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4090f7
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, ebp
jge 0x408dc4
mov byte [esp + 0x94], 2
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x408d97
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x94], 1
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov byte [esp + 0x94], 0
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x408d3d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x408d3d
mov ebx, dword [esp + 0x9c]
cmp ebx, ebp
je 0x408de6
call fcn.00405150
mov dword [esp + 0x20], eax
test eax, eax
jne 0x408dec
push 0x8007000e
call fcn.00401010
mov dword [esp + 0x20], ebp
jmp 0x408dee
xor ebp, ebp
lea edx, [esp + 0x30]
push edx
push 0x800
push 1
mov byte [esp + 0xa0], 4
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x40], ebp
mov ecx, dword [eax]
push 0x47ae80
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp eax, ebp
jge 0x408e57
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x94], 2
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x408d00
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [esp + 0x94], 1
mov ecx, dword [esi]
push esi
jmp 0x408d20
mov ebx, dword [esp + 0xa0]
mov edi, dword [ebx + 8]
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
xor ecx, ecx
mov eax, edi
mov edx, 0x10
mul edx
seto cl
mov dword [esp + 0x4c], edi
neg ecx
or ecx, eax
push ecx
call fcn.00436c63
xor ebp, ebp
add esp, 4
cmp edi, ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], ebp
jle 0x408f58
lea eax, [edi - 1]
lea ecx, [edi*4 - 4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
jmp 0x408ecb
mov ebx, dword [esp + 0xa0]
mov eax, dword [esp + 0x28]
test eax, eax
jl 0x409041
cmp eax, dword [ebx + 8]
jge 0x409041
mov eax, dword [ebx + 4]
add eax, dword [esp + 0x24]
mov eax, dword [eax]
test eax, eax
je 0x408efc
mov ebx, eax
call fcn.00405150
mov esi, eax
test esi, esi
je 0x408ddc
jmp 0x408efe
xor esi, esi
mov edx, dword [esp + 0x44]
lea ebx, [edx + ebp + 8]
test ebx, ebx
je 0x408f23
test esi, esi
jne 0x408f12
xor eax, eax
jmp 0x408f21
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [ebx], eax
mov ecx, dword [esp + 0x44]
mov eax, 8
push esi
mov word [ecx + ebp], ax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x24], 4
dec dword [esp + 0x28]
inc eax
add ebp, 0x10
cmp eax, edi
mov dword [esp + 0x2c], eax
jl 0x408ec0
mov esi, dword [esp + 0x3c]
xor eax, eax
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0x6c]
push edx
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x50]
push edx
push 1
mov byte [esp + 0xa8], 5
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
push 0
push 0x47ae80
or ebx, 0xffffffff
mov dword [esp + 0x5c], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov ecx, dword [esp + 0x44]
push ecx
mov edi, eax
call fcn.00436c58
add esp, 4
test edi, edi
jge 0x409046
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x94], 2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x409010
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x94], 1
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov byte [esp + 0x94], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408d40
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x408d40
call fcn.004372bf
mov edi, dword [esp + 0xa4]
test edi, edi
je 0x409078
lea ecx, [esp + 0x54]
cmp edi, ecx
je 0x409078
mov edx, ecx
push edx
push edi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jge 0x409078
mov ecx, 0xa
push eax
mov word [edi], cx
mov dword [edi + 8], eax
call fcn.00401010
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x94], 2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4090a6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x94], 1
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov byte [esp + 0x94], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4090ce
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x94], ebx
mov eax, dword [esp + 0x9c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4090f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 0xc