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

Disassembly:
push 0xffffffffffffffff
push 0x46f840
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b914]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dword [esp + 0x58], 0
call fcn.00436c6e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c2b4
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 1
call fcn.0043f0f2
mov ecx, dword [esp + 0x64]
mov byte [esp + 0x58], 2
mov eax, dword [ecx + 8]
sub eax, 0x10
push eax
call fcn.00402a90
lea ecx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], ecx
mov byte [esp + 0x58], 3
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x40c4f2
push 0x47c108
push ecx
call fcn.00455422
mov ecx, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x40c4f2
sub eax, ecx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40c4f2
push ebp
push 0
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
call fcn.0040e5d0
mov byte [esp + 0x58], 4
mov eax, dword [esp + 0x1c]
push 0x47c10c
push eax
call fcn.00455ad6
add esp, 8
test eax, eax
jne 0x40c3f0
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x24]
add ecx, 0x1e4
push edx
call fcn.004091a0
add esp, 4
mov byte [esp + 0x58], 5
mov ecx, dword [eax]
mov esi, dword [esp + 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40c3cb
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40c3bd
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c3bd
push eax
call fcn.00402a90
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40c3b4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x1c], ebx
jmp 0x40c3cb
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.004029a0
mov byte [esp + 0x58], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x44]
call fcn.0043f3c8
inc ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
call fcn.0040e5a0
mov byte [esp + 0x58], 6
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40c46f
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40c461
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c461
push eax
call fcn.00402a90
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40c458
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x18], ebp
jmp 0x40c46f
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.004029a0
mov byte [esp + 0x58], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c494
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jge 0x40c4a3
or ebp, 0xffffffff
jmp 0x40c4c0
push 0x47c108
push eax
call fcn.00455422
add esp, 8
test eax, eax
jne 0x40c4ba
or ebp, 0xffffffff
jmp 0x40c4c0
sub eax, dword [esp + 0x18]
mov ebp, eax
mov byte [esp + 0x58], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c4e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, 0xffffffff
jne 0x40c328
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
je 0x40c56a
push 0x47c10c
push ecx
call fcn.00455ad6
mov edi, dword [esp + 0x68]
add esp, 8
test eax, eax
jne 0x40c555
lea edx, [esp + 0x60]
lea ecx, [edi + 0x1e4]
push edx
call fcn.004091a0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 7
call fcn.004025d0
mov byte [esp + 0x58], 3
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c555
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x44]
call fcn.0043f3c8
jmp 0x40c56e
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [edx + 4]
lea ecx, [esp + 0x40]
push ecx
push ecx
sub eax, 0x10
mov dword [esp + 0x6c], esp
mov esi, esp
push eax
call fcn.00402a90
add eax, 0x10
add esp, 4
mov dword [esi], eax
cmp dword [edi + 0x168], 1
lea ecx, [edi + 0x78]
je 0x40c5a9
lea ecx, [edi + 0xf0]
call fcn.00408c70
test al, al
je 0x40c653
push 8
push 0
lea eax, [esp + 0x34]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov edx, dword [esp + 0x34]
push edx
lea ecx, [esp + 0x24]
call fcn.00409320
mov eax, dword [esp + 0x20]
push 0x47c110
push eax
call fcn.00455ad6
add esp, 8
test eax, eax
jne 0x40c653
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c611
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 1
call fcn.0043f2cf
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c644
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov al, 1
jmp 0x40c6b8
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c678
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 1
call fcn.0043f2cf
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c6ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 8