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

Disassembly:
push 0xffffffffffffffff
push 0x4210f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov eax, dword [ecx + 0x10]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
push edi
mov dword [esp + 0x5c], ecx
jne 0x40c7e3
mov eax, 0x80004005
jmp 0x40d0f6
mov eax, dword [esp + 0xa0]
cmp eax, 1
je 0x40c7fd
cmp eax, 2
je 0x40c7fd
cmp eax, 3
jne 0x40d16e
mov esi, dword [esp + 0x9c]
mov eax, dword [esi]
lea ecx, [esp + 0x50]
push ecx
push esi
call dword [eax + 0x20]
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x30], ebp
call dword [0x4221d4]
xor edi, edi
mov dword [esp + 0x90], ebp
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x98]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push 0x424270
push eax
mov byte [esp + 0x9c], 1
mov dword [esp + 0x4c], ebp
call dword [ecx]
mov eax, dword [esp + 0x50]
xor ebx, ebx
cmp eax, ebp
mov dword [esp + 0x4c], ebx
jle 0x40d0d8
nop
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
push ebx
push esi
call dword [eax + 0x1c]
cmp eax, ebp
jl 0x40d0c7
cmp dword [esp + 0x2c], ebp
je 0x40d0c7
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebp
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x94], 3
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
call fcn.0040b6a0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
call dword [ecx + 0x44]
lea eax, [esp + 0x68]
push eax
call dword [0x4221c8]
cmp edi, 0x4230f4
je 0x40c8f2
push edi
call dword [0x4221f0]
mov esi, dword [0x4221f4]
push 0x4230f4
call esi
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x1c], edi
jne 0x40c8f8
push 0x8007000e
call fcn.00401140
mov esi, dword [0x4221f4]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x40c950
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40c950
mov ecx, dword [eax]
lea edx, [esp + 0x68]
push edx
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x70]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebp
call fcn.00401200
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
mov ecx, dword [ebx + 4]
lea eax, [ebx + 4]
push edx
push eax
call dword [ecx + 0x20]
jmp 0x40c954
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x68]
push eax
call dword [0x4221c8]
cmp edi, str.Name
je 0x40c983
push edi
call dword [0x4221f0]
push str.Name
call esi
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x1c], edi
je 0x40c8e8
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x40c9d5
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40c9d5
mov ecx, dword [eax]
lea edx, [esp + 0x68]
push edx
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x70]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebp
call fcn.00401200
mov edx, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
lea eax, [ebx + 4]
push edx
push eax
call dword [ecx + 0x28]
lea eax, [esp + 0x68]
push eax
call dword [0x4221c8]
cmp edi, str.Description
je 0x40ca04
push edi
call dword [0x4221f0]
push str.Description
call esi
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x1c], edi
je 0x40c8e8
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x40ca56
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40ca56
mov ecx, dword [eax]
lea edx, [esp + 0x68]
push edx
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x70]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebp
call fcn.00401200
mov edx, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
lea eax, [ebx + 4]
push edx
push eax
call dword [ecx + 0x30]
lea eax, [esp + 0x68]
push eax
call dword [0x4221c8]
cmp edi, str.TargetURL
je 0x40ca85
push edi
call dword [0x4221f0]
push str.TargetURL
call esi
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x1c], edi
je 0x40c8e8
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x40cad7
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40cad7
mov ecx, dword [eax]
lea edx, [esp + 0x68]
push edx
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x70]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebp
call fcn.00401200
mov edx, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
lea eax, [ebx + 4]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], ebp
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
jl 0x40cbf9
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x40cbf9
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], ebp
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
cmp eax, ebp
jl 0x40cbef
push 0x4230b4
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], ebp
call fcn.00407580
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x54]
xor esi, esi
cmp eax, ebp
mov byte [esp + 0x90], 4
jle 0x40cbdc
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push esi
push eax
call dword [ecx + 0x1c]
cmp eax, ebp
jl 0x40cbc5
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x40cbc5
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x1c]
lea ecx, [esp + 0x18]
call fcn.0040a8f0
mov eax, dword [esp + 0x18]
push ebp
push 0x400
push ebx
push eax
call fcn.00417810
cmp eax, 1
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
jne 0x40cbd4
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x68]
cmp eax, ebp
jl 0x40cbb7
cmp eax, 1
je 0x40cbb7
mov eax, dword [esp + 0x18]
push 1
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x60], eax
call fcn.00402e60
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
jl 0x40cb41
jmp 0x40cbdc
push eax
call dword [ecx + 8]
mov dword [esp + 0x24], ebp
push ebx
mov byte [esp + 0x94], 3
call dword [0x4221f0]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x5c]
mov eax, dword [eax]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
call dword [ecx + 0x54]
mov esi, eax
cmp esi, ebp
jl 0x40d111
mov esi, dword [esp + 0x28]
cmp esi, ebp
je 0x40cc81
push esi
call dword [0x4221b8]
mov eax, esi
push eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x2c], ebp
call fcn.00402660
mov esi, dword [esp + 0x78]
mov ecx, dword [ebx + 4]
sub esp, 0x10
mov edx, esp
mov dword [edx], esi
mov esi, dword [esp + 0x8c]
mov dword [edx + 4], esi
mov esi, dword [esp + 0x90]
lea eax, [ebx + 4]
mov dword [edx + 8], esi
mov esi, dword [esp + 0x94]
push eax
mov byte [esp + 0xa4], 5
mov dword [edx + 0xc], esi
call dword [ecx + 0x48]
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x94], 3
call dword [0x4221c8]
mov eax, dword [esp + 0xa0]
cmp eax, 1
jne 0x40cd7d
mov ecx, dword [ebx + 4]
lea esi, [ebx + 4]
push eax
push esi
call dword [ecx + 0x78]
mov edi, dword [0x4221c8]
lea edx, [esp + 0x68]
push edx
call edi
push str.swClassProgId
lea ecx, [esp + 0x20]
call fcn.00401200
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x40cd09
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40cd09
mov ecx, dword [eax]
lea edx, [esp + 0x68]
push edx
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x70]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebp
call fcn.00401200
mov ecx, dword [esp + 0x18]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x38]
lea edx, [esp + 0x68]
push edx
call edi
push str.swClassGUID
lea ecx, [esp + 0x20]
call fcn.00401200
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push edi
push eax
call dword [ecx + 0x1c]
cmp eax, ebp
jl 0x40d063
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40d063
mov ecx, dword [eax]
lea edx, [esp + 0x68]
push edx
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x70]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebp
call fcn.00401200
mov ecx, dword [esp + 0x18]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x40]
jmp 0x40d063
cmp eax, 2
jne 0x40cf88
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x2c]
mov edx, dword [eax]
lea ecx, [esp + 0x24]
push ecx
push eax
mov byte [esp + 0x98], 6
call dword [edx + 0x1c]
lea ecx, [esp + 0x24]
call fcn.0040a8f0
push str.MESSAGE
lea ecx, [esp + 0x28]
call fcn.00402600
test al, al
lea esi, [ebx + 4]
je 0x40cdd2
mov edx, dword [esi]
push 3
push esi
call dword [edx + 0x78]
mov edi, dword [0x4221c8]
jmp 0x40ceae
mov eax, dword [esi]
push 2
push esi
call dword [eax + 0x78]
mov edi, dword [0x4221c8]
lea ecx, [esp + 0x68]
push ecx
call edi
push str.swClassProgId
lea ecx, [esp + 0x20]
call fcn.00401200
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
push ecx
push eax
call dword [edx + 0x1c]
test eax, eax
jl 0x40ce47
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40ce47
mov edx, dword [eax]
lea ecx, [esp + 0x68]
push ecx
push eax
call dword [edx + 0x20]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x70]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebp
call fcn.00401200
mov edx, dword [esp + 0x18]
mov ecx, dword [esi]
push edx
push esi
call dword [ecx + 0x38]
lea eax, [esp + 0x68]
push eax
call edi
push str.swClassGUID
lea ecx, [esp + 0x20]
call fcn.00401200
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x40ceae
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40ceae
mov ecx, dword [eax]
lea edx, [esp + 0x68]
push edx
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x70]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebp
call fcn.00401200
mov ecx, dword [esp + 0x18]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x40]
lea edx, [esp + 0x68]
push edx
call edi
push str.LaunchDate
lea ecx, [esp + 0x20]
call fcn.00401200
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push edi
push eax
call dword [ecx + 0x1c]
cmp eax, ebp
jl 0x40cf70
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40cf70
mov ecx, dword [eax]
lea edx, [esp + 0x68]
push edx
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x70]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebp
call fcn.00401200
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x44]
push eax
call fcn.00409a70
add esp, 4
test eax, eax
je 0x40cf47
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00418504
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x48]
add esp, 4
push edx
mov ebx, eax
call dword [0x42205c]
jmp 0x40cf4b
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov eax, dword [esi]
push ebp
push 0x3e8
push ecx
push ebx
mov dword [esp + 0x68], eax
call fcn.00418790
push edx
push eax
mov eax, dword [esp + 0x60]
push esi
call dword [eax + 0x58]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
push edx
mov byte [esp + 0x94], 3
call dword [0x4221f0]
jmp 0x40d063
cmp eax, 3
jne 0x40d14a
mov eax, dword [ebx + 4]
lea esi, [ebx + 4]
push 3
push esi
call dword [eax + 0x78]
lea ecx, [esp + 0x68]
push ecx
call dword [0x4221c8]
push str.LaunchDate
lea ecx, [esp + 0x20]
call fcn.00401200
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push edi
push eax
call dword [edx + 0x1c]
cmp eax, ebp
jl 0x40d063
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40d063
mov edx, dword [eax]
lea ecx, [esp + 0x68]
push ecx
push eax
call dword [edx + 0x20]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x70]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebp
call fcn.00401200
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x48]
push ecx
call fcn.00409a70
add esp, 4
test eax, eax
je 0x40d03a
mov edx, dword [esp + 0x48]
push edx
call fcn.00418504
mov ebx, eax
mov eax, dword [esp + 0x4c]
add esp, 4
push eax
mov dword [esp + 0x68], edx
call dword [0x42205c]
jmp 0x40d03e
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov eax, dword [esi]
push ebp
push 0x3e8
push ecx
push ebx
mov dword [esp + 0x68], eax
call fcn.00418790
push edx
push eax
mov eax, dword [esp + 0x60]
push esi
call dword [eax + 0x58]
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x3c]
push eax
push 0x424330
mov dword [esp + 0x44], ebp
mov edx, dword [ebx]
push ebx
call dword [edx]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x28]
cmp esi, ebp
je 0x40d0a9
push esi
call dword [0x4221b8]
cmp eax, ebp
jl 0x40d0a9
push esi
call dword [0x4221b0]
mov edx, dword [esp + 0x18]
push edx
mov byte [esp + 0x94], 1
call dword [0x4221f0]
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x9c]
mov eax, dword [esp + 0x50]
inc ebx
cmp ebx, eax
mov dword [esp + 0x4c], ebx
jl 0x40c860
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [0x4221f0]
lea edx, [esp + 0x68]
push edx
call dword [0x4221c8]
xor eax, eax
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x84
ret 0xc
mov ebx, dword [esp + 0x28]
cmp ebx, ebp
je 0x40d12b
push ebx
call dword [0x4221b8]
test eax, eax
jl 0x40d12b
push ebx
call dword [0x4221b0]
mov eax, dword [esp + 0x18]
mov ebx, dword [0x4221f0]
push eax
call ebx
push edi
call ebx
lea ecx, [esp + 0x68]
push ecx
call dword [0x4221c8]
mov eax, esi
jmp 0x40d0f6
lea ecx, [esp + 0x28]
call fcn.0040a850
mov edx, dword [esp + 0x18]
mov esi, dword [0x4221f0]
push edx
call esi
push edi
call esi
lea eax, [esp + 0x68]
push eax
call dword [0x4221c8]
mov eax, 0x80004001
jmp 0x40d0f6