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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
mov esi, eax
and dword [esi + 4], 0
push edi
mov dword [esi], 6
push dword [0x6be6f4]
mov edi, ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x70]
push dword [0x6be6d0]
mov ecx, edx
sar ecx, 0x1f
mov ecx, eax
shr ecx, 0x10
movsx ebx, cx
mov ecx, edx
shr ecx, 0x10
movsx ecx, cx
add ebx, ecx
cwde
movsx ecx, dx
add eax, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
push eax
mov dword [esp + 0x2c], ebx
call dword [ecx + 0x74]
mov dword [esp + 0x20], eax
cmp eax, 3
jne 0x487175
and dword [esi], 0
mov edi, dword [edi + 0xc]
and dword [esp + 0x14], 0
mov eax, dword [edi]
lea ecx, [esp + 0x14]
push ecx
push 0x63a118
push dword [0x6be6a0]
push edi
call dword [eax + 0x98]
test eax, eax
js 0x48716c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
add eax, dword [esp + 0x28]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
add eax, ebx
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
jmp 0x487506
and dword [esp + 0x1c], 0
cmp eax, 1
je 0x48718e
cmp eax, 2
je 0x48718e
mov dword [esp + 0x14], 0x405
jmp 0x487197
mov eax, dword [0x6be694]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 0x63a118
push dword [esp + 0x1c]
push eax
call dword [ecx + 0x98]
test eax, eax
js 0x4871c2
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [edi + 0xc]
push dword [0x6be6a4]
and dword [esp + 0x14], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
cmp eax, 0xffffffff
mov eax, dword [0x6be6a8]
jne 0x4871e5
mov eax, dword [0x6be6ac]
lea edx, [esp + 0x10]
push edx
push 0x63a118
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0xc]
push dword [esp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x98]
test eax, eax
js 0x487240
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
add eax, 3
add dword [esi], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [esp + 0x14], eax
jle 0x487233
mov eax, dword [esp + 0x14]
jmp 0x48723d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [edi + 0xc]
and dword [esp + 0x18], 0
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x158]
test eax, eax
js 0x48739c
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [edi + 0xc]
push dword [0x6be6e8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
cmp eax, 1
jne 0x48738e
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push dword [0x6be6c0]
push eax
call dword [ecx + 0x54]
test eax, eax
js 0x48738e
cmp word [esp + 0x50], 8
jne 0x48738e
mov ecx, dword [esp + 0x58]
cmp word [ecx], 0
je 0x48738e
mov eax, dword [esp + 0x18]
mov ebx, dword [eax]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push dword [esp + 0x60]
push dword [esp + 0x20]
call dword [ebx + 0xc]
mov eax, dword [esp + 0x30]
add dword [esi], eax
mov eax, dword [0x6a2f48]
mov ecx, dword [esi + 4]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
add eax, dword [esp + 0x34]
cmp ecx, eax
jle 0x4872fb
mov eax, ecx
mov dword [esi + 4], eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push dword [0x6be6c4]
push eax
call dword [ecx + 0x54]
test eax, eax
js 0x48737d
cmp word [esp + 0x40], 8
jne 0x48737d
mov ecx, dword [esp + 0x48]
cmp word [ecx], 0
je 0x48737d
mov eax, dword [esp + 0x18]
mov ebx, dword [eax]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push dword [esp + 0x50]
push dword [esp + 0x20]
call dword [ebx + 0xc]
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 4]
add eax, 5
add dword [esi], eax
mov eax, dword [0x6a2f48]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
add eax, dword [esp + 0x3c]
cmp ecx, eax
jle 0x48737a
mov eax, ecx
mov dword [esi + 4], eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ebx, dword [esp + 0x24]
jmp 0x487391
add dword [esi], 0xfffffffd
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [edi + 0xc]
and dword [esp + 0x2c], 0
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push 0x63a118
push dword [0x6be704]
push eax
call dword [ecx + 0x98]
test eax, eax
js 0x4873c4
add dword [esi], 5
cmp dword [esp + 0x20], 1
je 0x4873d2
cmp dword [esp + 0x20], 2
jne 0x4873e3
mov eax, dword [edi + 0xc]
push dword [0x6be6dc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
add dword [esi], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x48745c
mov ecx, dword [eax]
and dword [esp + 0x38], 0
and dword [esp + 0x3c], 0
push eax
call dword [ecx + 0x1c]
mov ecx, dword [esi + 4]
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
movzx ebx, ax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
shl ebx, 0x10
push eax
or ebx, 3
mov dword [esp + 0x18], eax
call dword [ecx + 0x1c]
add eax, dword [esp + 0x20]
movzx eax, ax
shl eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
add eax, 3
movzx eax, ax
or eax, dword [esp + 0x20]
push eax
push ebx
push dword [0x6be6e0]
push ecx
call dword [edx + 0xa0]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add dword [esi], eax
add dword [esi + 4], ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x70]
push eax
call ebx
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x70]
push edx
push 0x3ec
push eax
call dword [ecx + 0x54]
test eax, eax
js 0x487498
cmp word [esp + 0x70], 3
jne 0x487498
mov eax, dword [esp + 0x78]
mov dword [esi + 4], eax
lea eax, [esp + 0x60]
push eax
call ebx
mov edi, dword [edi + 0xc]
mov eax, dword [edi]
lea ecx, [esp + 0x60]
push ecx
push 0x3eb
push edi
call dword [eax + 0x54]
test eax, eax
js 0x4874c4
cmp word [esp + 0x60], 3
jne 0x4874c4
mov eax, dword [esp + 0x68]
mov dword [esi], eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x60]
push eax
call esi
lea eax, [esp + 0x70]
push eax
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4874e6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4874f4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x487502
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x487510
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret