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

Disassembly:
push 0xffffffffffffffff
push 0x4081b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
mov dword [esp + 0x30], ecx
push edi
add ecx, 0xa0
call fcn.00407040
xor ebx, ebx
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x14], ecx
je 0x40697a
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x4096f8
push eax
call dword [ecx]
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
mov dword [esp + 0x70], ebx
je 0x406c6c
mov dword [esp + 0x10], ebx
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push ecx
mov byte [esp + 0x78], 1
call dword [eax + 0x20]
cmp dword [esp + 0x10], ebx
jne 0x4069bf
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], 0xffffffff
cmp eax, ebx
je 0x406c6c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x406c6c
mov dword [esp + 0x24], ebx
push 0x40b28c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 2
mov word [esp + 0x3c], bx
call sub.MFC42.DLL_COleVariant::operator_1
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x24]
push ecx
mov eax, dword [esp + 0x14]
sub esp, 0x10
mov byte [esp + 0x84], 3
mov ecx, esp
mov edx, dword [eax]
push eax
mov dword [ecx], esi
mov esi, dword [esp + 0x54]
mov dword [ecx + 4], esi
mov esi, dword [esp + 0x58]
mov dword [ecx + 8], esi
mov esi, dword [esp + 0x5c]
mov dword [ecx + 0xc], esi
call dword [edx + 0x30]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x74], 2
call edi
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x20], eax
je 0x406a49
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push edx
push 0x4096e8
push ecx
call dword [eax]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov byte [esp + 0x70], 4
jne 0x406a8c
cmp ecx, ebx
mov byte [esp + 0x70], 1
je 0x406a61
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x70], bl
cmp eax, ebx
je 0x406a73
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], 0xffffffff
cmp eax, ebx
je 0x406c6c
jmp 0x406c66
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
call dword [sym.imp.MSVCRT.dll_rand]
mov ebp, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov esi, ebp
cdq
sub esi, ecx
idiv esi
mov esi, edx
add esi, ecx
cmp esi, ebp
jge 0x406c1e
mov dword [esp + 0x1c], ebx
push 3
push esi
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 5
call sub.MFC42.DLL_COleVariant::COleVariant
lea eax, [esp + 0x38]
mov byte [esp + 0x70], 6
push eax
call sub.MFC42.DLL_AfxVariantInit
mov ebp, dword [esp + 0x38]
lea edx, [esp + 0x1c]
push edx
mov eax, dword [esp + 0x24]
sub esp, 0x10
mov byte [esp + 0x84], 7
mov edx, esp
sub esp, 0x10
mov ecx, dword [eax]
mov dword [edx], ebp
mov ebp, dword [esp + 0x60]
mov dword [edx + 4], ebp
mov ebp, dword [esp + 0x64]
mov dword [edx + 8], ebp
mov ebp, dword [esp + 0x68]
mov dword [edx + 0xc], ebp
mov ebp, dword [esp + 0x6c]
mov edx, esp
push eax
mov dword [edx], ebp
mov ebp, dword [esp + 0x74]
mov dword [edx + 4], ebp
mov ebp, dword [esp + 0x78]
mov dword [edx + 8], ebp
mov ebp, dword [esp + 0x7c]
mov dword [edx + 0xc], ebp
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x406b56
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x4096d8
push eax
call dword [ecx]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x70], 8
cmp ecx, ebx
je 0x406bdd
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x78], ecx
je 0x406b80
mov ecx, dword [eax]
lea edx, [esp + 0x78]
push edx
push 0x4096c8
push eax
call dword [ecx]
mov ecx, dword [esp + 0x78]
cmp ecx, ebx
mov byte [esp + 0x70], 9
je 0x406bce
mov eax, dword [ecx]
lea edx, [esp + 0x30]
push edx
push ecx
call dword [eax + 0x20]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x70], 0xa
push ecx
call fcn.00401c10
add esp, 4
test eax, eax
jne 0x406c81
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 9
call fcn.004071b2
mov ecx, dword [esp + 0x78]
cmp ecx, ebx
mov byte [esp + 0x70], 8
je 0x406bdd
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x70], 7
cmp eax, ebx
je 0x406bf0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x38]
push edx
call edi
lea eax, [esp + 0x48]
push eax
call edi
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x70], 4
cmp eax, ebx
je 0x406c11
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x7c]
inc esi
cmp esi, eax
jl 0x406abc
mov eax, dword [esp + 0x20]
mov byte [esp + 0x70], 2
cmp eax, ebx
je 0x406c31
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x70], 1
cmp eax, ebx
je 0x406c44
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x70], bl
cmp eax, ebx
je 0x406c56
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], 0xffffffff
cmp eax, ebx
je 0x406c6c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret 8
push str._self
lea ecx, [esp + 0x5c]
mov word [esp + 0x5c], bx
call sub.MFC42.DLL_COleVariant::operator_1
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x60]
push ecx
push eax
mov edx, dword [eax]
mov byte [esp + 0x78], 0xb
call dword [edx + 0x24]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x28]
push edx
lea ecx, [eax + 0xf4]
call fcn.004071ee
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x114]
lea edx, [esp + 0x58]
push edx
call edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 9
call fcn.004071b2
mov eax, dword [esp + 0x78]
mov byte [esp + 0x70], 8
cmp eax, ebx
je 0x406cf1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x70], 7
cmp eax, ebx
je 0x406d04
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [esp + 0x38]
push eax
call edi
lea ecx, [esp + 0x48]
push ecx
call edi
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x70], 4
cmp eax, ebx
je 0x406d25
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x70], 2
cmp eax, ebx
je 0x406d38
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x70], 1
cmp eax, ebx
je 0x406d4b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x70], bl
cmp eax, ebx
je 0x406d5d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], 0xffffffff
cmp eax, ebx
je 0x406c6c
jmp 0x406c66