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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a19b8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4cc99c]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x4cc99c]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], esi
cmp eax, 0xffffea78
jne 0x40b6e8
mov ecx, 3
mov word [edi], cx
mov dword [edi + 8], 0x70
xor eax, eax
jmp 0x40cb62
cmp eax, 1
jne 0x40b795
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x40b715
test edi, edi
je 0x40b715
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, 0xb
mov eax, 1
mov word [edi], dx
mov word [edi + 8], ax
test bl, 1
je 0x40cb59
cmp dword [esi + 8], 1
jne 0x40cb59
mov eax, dword [esi]
cmp word [eax], 8
jne 0x40cb59
mov eax, dword [eax + 8]
test eax, eax
jne 0x40b77a
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x70], 0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
mov edi, dword [edx + 0x44]
test edi, edi
je 0x40b76c
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push esi
call fcn.00402480
push edi
call fcn.00429430
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x40cb62
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
jne 0x40b741
push 0x8007000e
call fcn.00401050
cmp eax, 2
jne 0x40b840
mov bl, byte [ebp + 0x18]
test al, bl
je 0x40b7c1
test edi, edi
je 0x40b7c1
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, 0xb
mov ecx, 1
mov word [edi], ax
mov word [edi + 8], cx
test bl, 1
je 0x40cb59
cmp dword [esi + 8], 1
jne 0x40cb59
mov eax, dword [esi]
cmp word [eax], 8
jne 0x40cb59
mov eax, dword [eax + 8]
test eax, eax
jne 0x40b825
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x70], 1
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
mov esi, dword [eax + 0x44]
test esi, esi
je 0x40b817
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push edi
call fcn.00402480
call fcn.00428690
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x40cb62
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x40b7ed
push 0x8007000e
call fcn.00401050
cmp eax, 3
jne 0x40b8ed
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x40b86d
test edi, edi
je 0x40b86d
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, 0xb
mov edx, 1
mov word [edi], cx
mov word [edi + 8], dx
test bl, 1
je 0x40cb59
cmp dword [esi + 8], 1
jne 0x40cb59
mov eax, dword [esi]
cmp word [eax], 8
jne 0x40cb59
mov eax, dword [eax + 8]
test eax, eax
jne 0x40b8d2
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x70], 2
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov esi, dword [ecx + 0x44]
test esi, esi
je 0x40b8c4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push edi
call fcn.00402480
push esi
call fcn.00428bb0
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x40cb62
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x40b899
push 0x8007000e
call fcn.00401050
cmp eax, 4
jne 0x40b9f8
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x40b91a
test edi, edi
je 0x40b91a
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, 0xb
mov eax, 1
mov word [edi], dx
mov word [edi + 8], ax
test bl, 1
je 0x40cb59
cmp dword [esi + 8], 2
jne 0x40cb59
mov eax, dword [esi]
cmp word [eax], 8
jne 0x40cb59
cmp word [eax + 0x10], 8
jne 0x40cb59
mov eax, dword [eax + 8]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
jne 0x40b9ca
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x70], 3
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
test eax, eax
jne 0x40b9e1
xor esi, esi
mov dword [esp + 0x14], esi
mov byte [esp + 0x70], 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x44], 0
je 0x40b9b7
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push esi
call fcn.00402480
sub esp, 0x1c
mov byte [esp + 0xa8], 5
mov ecx, esp
mov dword [esp + 0x50], esp
push edi
call fcn.00402480
mov byte [esp + 0xa8], 4
call fcn.004293e0
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push edi
call esi
xor eax, eax
jmp 0x40cb62
push eax
call ebx
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x40b957
push 0x8007000e
call fcn.00401050
push eax
call ebx
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
jne 0x40b972
push 0x8007000e
call fcn.00401050
cmp eax, 5
jne 0x40baa4
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x40ba25
test edi, edi
je 0x40ba25
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, 0xb
mov eax, 1
mov word [edi], dx
mov word [edi + 8], ax
test bl, 1
je 0x40cb59
cmp dword [esi + 8], 1
jne 0x40cb59
mov eax, dword [esi]
cmp word [eax], 8
jne 0x40cb59
mov eax, dword [eax + 8]
test eax, eax
jne 0x40ba89
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x70], 6
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
mov esi, dword [edx + 0x44]
test esi, esi
je 0x40ba7b
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push edi
call fcn.00402480
call fcn.00428d90
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x40cb62
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x40ba51
push 0x8007000e
call fcn.00401050
cmp eax, 6
jne 0x40bb50
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x40bad1
test edi, edi
je 0x40bad1
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, 0xb
mov ecx, 1
mov word [edi], ax
mov word [edi + 8], cx
test bl, 1
je 0x40cb59
cmp dword [esi + 8], 1
jne 0x40cb59
mov eax, dword [esi]
cmp word [eax], 8
jne 0x40cb59
mov eax, dword [eax + 8]
test eax, eax
jne 0x40bb35
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x70], 7
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
mov esi, dword [eax + 0x44]
test esi, esi
je 0x40bb27
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push edi
call fcn.00402480
call fcn.004291d0
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x40cb62
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x40bafd
push 0x8007000e
call fcn.00401050
cmp eax, 7
jne 0x40bbfc
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x40bb7d
test edi, edi
je 0x40bb7d
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, 0xb
mov edx, 1
mov word [edi], cx
mov word [edi + 8], dx
test bl, 1
je 0x40cb59
cmp dword [esi + 8], 1
jne 0x40cb59
mov eax, dword [esi]
cmp word [eax], 8
jne 0x40cb59
mov eax, dword [eax + 8]
test eax, eax
jne 0x40bbe1
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x70], 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov esi, dword [ecx + 0x44]
test esi, esi
je 0x40bbd3
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push edi
call fcn.00402480
call fcn.00429370
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x40cb62
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x40bba9
push 0x8007000e
call fcn.00401050
cmp eax, 0x16
jne 0x40bd82
mov al, byte [ebp + 0x18]
test al, 2
je 0x40bc33
test edi, edi
je 0x40cb59
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, 1
mov edx, 0xb
mov word [edi + 8], ax
mov word [edi], dx
xor eax, eax
jmp 0x40cb62
test al, 1
je 0x40cb59
cmp dword [esi + 8], 3
jne 0x40cb59
mov eax, dword [esi]
mov ecx, 8
cmp word [eax], cx
jne 0x40cb59
cmp word [eax + 0x10], cx
jne 0x40cb59
cmp word [eax + 0x20], cx
jne 0x40cb59
mov eax, dword [eax + 0x28]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor edi, edi
cmp eax, edi
jne 0x40bd33
mov dword [esp + 0x14], edi
mov dword [esp + 0x70], 9
mov esi, dword [esp + 0x18]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x18]
cmp eax, edi
jne 0x40bd4c
mov dword [esp + 0x10], edi
mov byte [esp + 0x70], 0xa
mov edx, dword [esi]
mov eax, dword [edx + 8]
test eax, eax
jne 0x40bd67
xor esi, esi
mov dword [esp + 0x18], esi
mov byte [esp + 0x70], 0xb
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
test eax, eax
je 0x40bd19
cmp dword [eax + 0x44], 0
je 0x40bd19
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push esi
call fcn.00402480
sub esp, 0x1c
mov byte [esp + 0xa8], 0xc
mov ecx, esp
mov dword [esp + 0x54], esp
push edi
call fcn.00402480
sub esp, 0x1c
mov byte [esp + 0xc4], 0xd
mov edx, dword [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x78], esp
push edx
call fcn.00402480
mov byte [esp + 0xc4], 0xb
call fcn.00439530
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push edi
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
xor eax, eax
jmp 0x40cb62
push eax
call ebx
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x40bc80
push 0x8007000e
call fcn.00401050
push eax
call ebx
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x40bc9d
push 0x8007000e
call fcn.00401050
push eax
call ebx
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
jne 0x40bcb5
push 0x8007000e
call fcn.00401050
cmp eax, 0x13
jne 0x40bead
mov al, byte [ebp + 0x18]
test al, 2
je 0x40bdb9
test edi, edi
je 0x40cb59
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, 0xb
mov edx, 1
mov word [edi], cx
mov word [edi + 8], dx
xor eax, eax
jmp 0x40cb62
test al, 1
je 0x40cb59
cmp dword [esi + 8], 2
jne 0x40cb59
mov eax, dword [esi]
cmp word [eax], 8
jne 0x40cb59
cmp word [eax + 0x10], 8
jne 0x40cb59
mov eax, dword [eax + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
jne 0x40be77
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x70], 0xe
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x40be92
xor esi, esi
mov dword [esp + 0x14], esi
mov byte [esp + 0x70], 0xf
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
test eax, eax
je 0x40be64
mov edi, dword [eax + 0x44]
test edi, edi
je 0x40be64
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push ebx
call fcn.00402480
sub esp, 0x1c
mov byte [esp + 0xa8], 0x10
mov ecx, esp
mov dword [esp + 0x58], esp
push esi
call fcn.00402480
mov ecx, edi
mov byte [esp + 0xa8], 0xf
call fcn.00439320
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push ebx
call esi
xor eax, eax
jmp 0x40cb62
push eax
call edi
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x40bdf9
push 0x8007000e
call fcn.00401050
push eax
call edi
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
jne 0x40be18
push 0x8007000e
call fcn.00401050
cmp eax, 0x15
jne 0x40bf68
mov al, byte [ebp + 0x18]
test al, 2
je 0x40bee4
test edi, edi
je 0x40cb59
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, 0xb
mov ecx, 1
mov word [edi], ax
mov word [edi + 8], cx
xor eax, eax
jmp 0x40cb62
test al, 1
je 0x40cb59
cmp dword [esi + 8], 1
jne 0x40cb59
mov eax, dword [esi]
cmp word [eax], 8
jne 0x40cb59
mov eax, dword [eax + 8]
test eax, eax
jne 0x40bf4d
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x70], 0x11
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
test eax, eax
je 0x40bf3f
mov esi, dword [eax + 0x44]
test esi, esi
je 0x40bf3f
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push edi
call fcn.00402480
mov ecx, esi
call fcn.004395f0
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x40cb62
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x40bf0f
push 0x8007000e
call fcn.00401050
cmp eax, 0x14
jne 0x40c082
test byte [ebp + 0x18], 2
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
je 0x40bf95
test edi, edi
je 0x40bf95
push edi
call ebx
mov eax, 0xb
mov ecx, 1
mov word [edi], ax
mov word [edi + 8], cx
test byte [ebp + 0x18], 1
je 0x40cb59
cmp dword [esi + 8], 1
jne 0x40cb59
mov edx, dword [esi]
cmp word [edx], 8
jne 0x40cb59
test edi, edi
je 0x40cb59
push edi
call ebx
mov eax, 8
mov word [edi], ax
mov ecx, dword [esi]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x40c048
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x70], 0x12
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
test eax, eax
je 0x40c03a
mov esi, dword [eax + 0x44]
test esi, esi
je 0x40c03a
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push ebx
call fcn.00402480
push esi
lea ecx, [esp + 0x48]
call fcn.00439710
mov byte [esp + 0x70], 0x13
cmp dword [esp + 0x3c], 8
jb 0x40c067
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40c06b
xor esi, esi
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push esi
mov dword [edi + 8], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x28]
call fcn.004024d0
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x40cb62
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x40bfd7
push 0x8007000e
call fcn.00401050
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
jne 0x40c020
push 0x8007000e
call fcn.00401050
cmp eax, 0x12
jne 0x40c10d
test byte [ebp + 0x18], 2
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
je 0x40c0af
test edi, edi
je 0x40c0af
push edi
call ebx
mov eax, 0xb
mov ecx, 1
mov word [edi], ax
mov word [edi + 8], cx
test byte [ebp + 0x18], 1
je 0x40cb59
mov edx, esi
cmp dword [edx + 8], 0
jne 0x40cb59
test edi, edi
je 0x40cb59
push edi
call ebx
lea ecx, [esp + 0x28]
mov eax, 8
push ecx
mov word [edi], ax
call fcn.004657d0
add esp, 4
mov dword [esp + 0x70], 0x14
jmp 0x40c204
lea eax, [esp + 0x28]
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x40c223
push 0x8007000e
call fcn.00401050
cmp eax, 0x11
jne 0x40c196
test byte [ebp + 0x18], 2
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
je 0x40c13a
test edi, edi
je 0x40c13a
push edi
call ebx
mov edx, 0xb
mov eax, 1
mov word [edi], dx
mov word [edi + 8], ax
test byte [ebp + 0x18], 1
je 0x40cb59
mov ecx, esi
cmp dword [ecx + 8], 0
jne 0x40cb59
test edi, edi
je 0x40cb59
push edi
call ebx
lea eax, [esp + 0x44]
mov edx, 8
push eax
mov word [edi], dx
call fcn.0047b400
add esp, 4
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x78], 0x15
call fcn.0047af30
add esp, 8
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], 0x17
call fcn.004024d0
jmp 0x40c204
cmp eax, 0x10
jne 0x40c240
mov bl, byte [ebp + 0x18]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
test bl, 2
je 0x40c1c5
test edi, edi
je 0x40c1c5
push edi
call esi
mov edx, 0xb
mov eax, 1
mov word [edi], dx
mov word [edi + 8], ax
test bl, 1
je 0x40cb59
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 8], 0
jne 0x40cb59
test edi, edi
je 0x40cb59
push edi
call esi
lea eax, [esp + 0x28]
mov edx, 8
push eax
mov word [edi], dx
call fcn.00460e70
add esp, 4
mov dword [esp + 0x70], 0x18
cmp dword [esp + 0x3c], 8
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
jb 0x40c0f2
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40c0f6
xor esi, esi
push esi
call ebx
push esi
mov dword [edi + 8], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x28]
call fcn.004024d0
xor eax, eax
jmp 0x40cb62
cmp eax, 0xf
jne 0x40c2ea
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x40c26b
test edi, edi
je 0x40c26b
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, 0x16
mov word [edi], cx
mov dword [edi + 8], 1
test bl, 1
je 0x40cb59
cmp dword [esi + 8], 1
jne 0x40cb59
mov eax, dword [esi]
cmp word [eax], 8
jne 0x40cb59
mov eax, dword [eax + 8]
test eax, eax
jne 0x40c2cf
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x70], 0x19
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
mov ebx, dword [eax + 0x44]
test ebx, ebx
je 0x40c2c1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
call fcn.00402480
call fcn.00438590
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x40cb62
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
jne 0x40c297
push 0x8007000e
call fcn.00401050
cmp eax, 0xe
jne 0x40c41f
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x40c315
test edi, edi
je 0x40c315
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, 0x16
mov word [edi], cx
mov dword [edi + 8], 1
test bl, 1
je 0x40cb59
cmp dword [esi + 8], 3
jne 0x40cb59
mov eax, dword [esi]
cmp word [eax], 3
jne 0x40cb59
mov ecx, 8
cmp word [eax + 0x10], cx
jne 0x40cb59
cmp word [eax + 0x20], cx
jne 0x40cb59
mov edx, dword [eax + 8]
mov eax, dword [eax + 0x18]
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x20], edx
test eax, eax
jne 0x40c3e9
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x70], 0x1a
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x28]
test eax, eax
jne 0x40c404
xor esi, esi
mov dword [esp + 0x14], esi
mov byte [esp + 0x70], 0x1b
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
mov edi, dword [eax + 0x44]
test edi, edi
je 0x40c3d6
mov ecx, dword [esp + 0x20]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push ebx
call fcn.00402480
sub esp, 0x1c
mov byte [esp + 0xac], 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push esi
call fcn.00402480
push edi
mov byte [esp + 0xb0], 0x1b
call fcn.00438670
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push ebx
call esi
xor eax, eax
jmp 0x40cb62
push eax
call edi
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x40c36b
push 0x8007000e
call fcn.00401050
push eax
call edi
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
jne 0x40c38a
push 0x8007000e
call fcn.00401050
cmp eax, 0xd
jne 0x40c4cc
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x40c44c
test edi, edi
je 0x40c44c
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, 0xb
mov eax, 1
mov word [edi], dx
mov word [edi + 8], ax
test bl, 1
je 0x40cb59
mov eax, esi
cmp dword [eax + 8], 1
jne 0x40cb59
mov eax, dword [eax]
cmp word [eax], 8
jne 0x40cb59
mov eax, dword [eax + 8]
test eax, eax
jne 0x40c4b1
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x70], 0x1d
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
cmp dword [edx + 0x44], 0
je 0x40c4a3
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
call fcn.00402480
call fcn.004292b0
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x40cb62
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
jne 0x40c47a
push 0x8007000e
call fcn.00401050
cmp eax, 9
jne 0x40c6c1
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x40c4f9
test edi, edi
je 0x40c4f9
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, 0xb
mov ecx, 1
mov word [edi], ax
mov word [edi + 8], cx
test bl, 1
je 0x40cb59
cmp dword [esi + 8], 1
jne 0x40cb59
mov edx, dword [esi]
cmp word [edx], 8
jne 0x40cb59
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x44]
mov dword [esp + 0x14], eax
test eax, eax
je 0x40cb59
push 0x10
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov ebx, eax
mov eax, 1
mov dword [ebx + 4], eax
mov dword [ebx], 4
mov dword [ebx + 8], eax
mov edx, dword [esi]
mov eax, dword [edx + 8]
add esp, 4
test eax, eax
jne 0x40c60b
mov dword [esp + 0x18], eax
mov dword [esp + 0x70], 0x1e
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00497652
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
inc eax
push eax
push esi
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
mov dword [ebx + 0xc], esi
mov esi, dword [esp + 0x14]
push ebx
call fcn.0042c650
mov eax, esi
mov eax, dword [eax + 0x24f4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
test edi, edi
je 0x40c6a1
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, 8
mov word [edi], cx
test esi, esi
jne 0x40c67e
cmp dword [ebx + 0xc], esi
je 0x40c67e
push 0x4ab248
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
jne 0x40c628
push 0x8007000e
call fcn.00401050
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40c55d
push 0x8007000e
call fcn.00401050
mov byte [esp + 0x70], 0x1f
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x40c672
cmp dword [ecx + 4], 0
jbe 0x40c66b
mov edx, dword [ecx]
mov eax, dword [edx]
mov esi, dword [eax + 8]
test esi, esi
je 0x40c667
lea ecx, [esi + 0x1200]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040aeb0
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov ecx, dword [esp + 0x24]
add esp, 4
mov esi, dword [esp + 0x14]
push 1
call fcn.0040cb90
push esi
mov dword [edi + 8], esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40c6a5
push 0x4ab248
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
jne 0x40c697
push 0x8007000e
call fcn.00401050
push eax
mov dword [edi + 8], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jne 0x40c6af
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x40cb62
cmp eax, 8
jne 0x40c875
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x40c6ec
test edi, edi
je 0x40c6ec
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, 0xb
or ecx, 0xffffffff
mov word [edi], ax
mov word [edi + 8], cx
test bl, 1
je 0x40cb59
mov eax, esi
cmp dword [eax + 8], 2
jne 0x40cb59
mov eax, dword [eax]
cmp word [eax], 8
jne 0x40cb59
cmp word [eax + 0x10], 8
jne 0x40cb59
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x44]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40cb59
mov esi, dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
push 0x10
call esi
mov ebx, eax
mov eax, 1
add esp, 4
push 0xe958
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
call esi
add esp, 4
test eax, eax
je 0x40c763
mov ecx, eax
call fcn.004035d0
mov esi, eax
jmp 0x40c765
xor esi, esi
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
test eax, eax
jne 0x40c80c
mov dword [esp + 0x10], eax
push eax
push 0x80
push esi
mov dword [esp + 0x7c], 0x20
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
add esp, 0xc
test eax, eax
jne 0x40c829
mov dword [esp + 0x14], eax
mov byte [esp + 0x70], 0x21
mov edx, dword [esp + 0x14]
push edx
lea eax, [esi + 0x1200]
push 0x1000
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
mov dword [ebx + 0xc], esi
mov esi, dword [esp + 0x1c]
push ebx
call fcn.0042c650
mov ecx, esi
mov eax, dword [ecx + 0x24f4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
test edi, edi
je 0x40c84c
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, 0xb
mov word [edi], dx
test esi, esi
jne 0x40c846
cmp dword [ebx + 0xc], 1
jne 0x40c846
or eax, 0xffffffff
mov word [edi + 8], ax
jmp 0x40c850
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40c77a
push 0x8007000e
call fcn.00401050
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40c7a7
push 0x8007000e
call fcn.00401050
xor ecx, ecx
mov word [edi + 8], cx
test esi, esi
jne 0x40c85a
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
xor eax, eax
jmp 0x40cb62
cmp eax, 0xa
jne 0x40c9c4
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x40c8a0
test edi, edi
je 0x40c8a0
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, 0xb
or edx, 0xffffffff
mov word [edi], cx
mov word [edi + 8], dx
test bl, 1
je 0x40cb59
mov eax, esi
cmp dword [eax + 8], 1
jne 0x40cb59
mov eax, dword [eax]
cmp word [eax], 8
jne 0x40cb59
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x44]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40cb59
mov esi, dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
push 0x10
call esi
mov ebx, eax
mov eax, 1
add esp, 4
push 0xe958
mov dword [ebx + 4], eax
mov dword [ebx], 2
mov dword [ebx + 8], eax
call esi
add esp, 4
test eax, eax
je 0x40c910
mov ecx, eax
call fcn.004035d0
mov esi, eax
jmp 0x40c912
xor esi, esi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x40c985
mov dword [esp + 0x14], eax
mov dword [esp + 0x70], 0x22
mov edx, dword [esp + 0x14]
push edx
push 0x80
push esi
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
mov dword [ebx + 0xc], esi
mov esi, dword [esp + 0x10]
push ebx
call fcn.0042c650
mov eax, esi
mov eax, dword [eax + 0x24f4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
test edi, edi
je 0x40c9a4
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, 0xb
mov word [edi], cx
test esi, esi
jne 0x40c99e
cmp dword [ebx + 0xc], 1
jne 0x40c99e
or edx, 0xffffffff
mov word [edi + 8], dx
jmp 0x40c9a8
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40c923
push 0x8007000e
call fcn.00401050
xor eax, eax
mov word [edi + 8], ax
test esi, esi
jne 0x40c9b2
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x40cb62
cmp eax, 0xc
jne 0x40ca90
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x40c9ef
test edi, edi
je 0x40c9ef
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, 0x16
mov word [edi], dx
mov dword [edi + 8], 1
test bl, 1
je 0x40cb59
cmp dword [esi + 8], 1
jne 0x40cb59
mov eax, dword [esi]
cmp word [eax], 8
jne 0x40cb59
mov eax, dword [eax + 8]
test eax, eax
jne 0x40ca58
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x70], 0x23
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov ebx, dword [ecx + 0x44]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
call fcn.00402480
test ebx, ebx
je 0x40ca73
mov ecx, ebx
call fcn.00428ab0
push esi
mov dword [edi + 8], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x40cb62
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
jne 0x40ca1b
push 0x8007000e
call fcn.00401050
mov edx, dword [esp + 0x38]
mov ecx, dword [edx + 8]
call fcn.00417d60
push esi
mov dword [edi + 8], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x40cb62
cmp eax, 0xb
jne 0x40cb5d
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x40cabb
test edi, edi
je 0x40cabb
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, 0xb
or ecx, 0xffffffff
mov word [edi], ax
mov word [edi + 8], cx
test bl, 1
je 0x40cb59
mov edx, esi
cmp dword [edx + 8], 0
jne 0x40cb59
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov esi, dword [ecx + 0x44]
test esi, esi
je 0x40cb59
push 0x10
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov ebx, eax
add esp, 4
mov eax, 1
push ebx
mov dword [ebx + 4], eax
mov dword [ebx], 3
mov dword [ebx + 8], eax
call fcn.0042c650
mov esi, dword [esi + 0x24f4]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
test edi, edi
je 0x40cb4b
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, 0xb
mov word [edi], dx
test esi, esi
jne 0x40cb45
cmp dword [ebx + 0xc], 1
jne 0x40cb45
or eax, 0xffffffff
push ebx
mov word [edi + 8], ax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x40cb62
xor ecx, ecx
mov word [edi + 8], cx
test esi, esi
jne 0x40cb59
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x40cb62
mov eax, 0x80020003
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00497792
mov esp, ebp
pop ebp
ret 0x24