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

Disassembly:
push 0xffffffffffffffff
push 0x41a6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x423018]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [esp + 0xac]
mov esi, dword [esp + 0xa8]
mov ebp, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
xor edi, edi
cmp dword [ecx + 0x10], edi
jne 0x40fae7
mov eax, 0x80004005
jmp 0x41054f
cmp eax, 1
je 0x40fafa
cmp eax, 2
je 0x40fafa
cmp eax, 3
jne 0x4105c8
mov edx, dword [esi]
mov ecx, dword [edx + 0x20]
lea eax, [esp + 0x50]
push eax
push esi
call ecx
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x3c], edi
call dword [0x41b214]
xor ebx, ebx
mov dword [esp + 0x98], edi
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x98], 1
mov eax, dword [ebp]
mov edx, dword [eax]
push ecx
push 0x41bd8c
push ebp
mov dword [esp + 0x54], edi
call edx
xor ebp, ebp
cmp dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebp
jle 0x41052f
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x38]
push ecx
push ebp
push esi
call edx
cmp eax, edi
jl 0x41051e
cmp dword [esp + 0x38], edi
je 0x41051e
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edi
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x9c], 3
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
call fcn.00411250
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
lea ecx, [esp + 0x6c]
push ecx
call dword [0x41b1e8]
cmp ebx, 0x41c9d4
je 0x40fbe7
push ebx
call dword [0x41b220]
mov ebp, dword [0x41b228]
push 0x41c9d4
call ebp
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x24], ebx
jne 0x40fbed
push 0x8007000e
call fcn.00405f30
mov ebp, dword [0x41b228]
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push eax
call edx
test eax, eax
jl 0x40fc63
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x40fc63
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x20]
cmp esi, eax
mov dword [esp + 0x1c], edi
je 0x40fc52
push eax
call dword [0x41b220]
cmp esi, edi
je 0x40fc4c
push esi
call ebp
cmp eax, edi
mov dword [esp + 0x20], eax
je 0x40fbdd
jmp 0x40fc52
xor eax, eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
add ecx, 4
push eax
mov eax, dword [edx + 0x20]
push ecx
call eax
lea ecx, [esp + 0x6c]
push ecx
call dword [0x41b1e8]
cmp ebx, str.Name
je 0x40fc92
push ebx
call dword [0x41b220]
push str.Name
call ebp
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x24], ebx
je 0x40fbdd
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push eax
call edx
test eax, eax
jl 0x40fd0c
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x40fd0c
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x20]
cmp esi, eax
mov dword [esp + 0x1c], edi
je 0x40fcfb
push eax
call dword [0x41b220]
cmp esi, edi
je 0x40fcf5
push esi
call ebp
cmp eax, edi
mov dword [esp + 0x20], eax
je 0x40fbdd
jmp 0x40fcfb
xor eax, eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
add ecx, 4
push eax
mov eax, dword [edx + 0x28]
push ecx
call eax
lea ecx, [esp + 0x6c]
push ecx
call dword [0x41b1e8]
cmp ebx, str.Description
je 0x40fd3b
push ebx
call dword [0x41b220]
push str.Description
call ebp
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x24], ebx
je 0x40fbdd
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push eax
call edx
test eax, eax
jl 0x40fdb5
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x40fdb5
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x20]
cmp esi, eax
mov dword [esp + 0x1c], edi
je 0x40fda4
push eax
call dword [0x41b220]
cmp esi, edi
je 0x40fd9e
push esi
call ebp
cmp eax, edi
mov dword [esp + 0x20], eax
je 0x40fbdd
jmp 0x40fda4
xor eax, eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
add ecx, 4
push eax
mov eax, dword [edx + 0x30]
push ecx
call eax
lea ecx, [esp + 0x6c]
push ecx
call dword [0x41b1e8]
cmp ebx, str.TargetURL
je 0x40fde4
push ebx
call dword [0x41b220]
push str.TargetURL
call ebp
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x24], ebx
je 0x40fbdd
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push eax
call edx
test eax, eax
jl 0x40fe5e
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x40fe5e
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x20]
cmp esi, eax
mov dword [esp + 0x1c], edi
je 0x40fe4d
push eax
call dword [0x41b220]
cmp esi, edi
je 0x40fe47
push esi
call ebp
cmp eax, edi
mov dword [esp + 0x20], eax
je 0x40fbdd
jmp 0x40fe4d
xor eax, eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
add ecx, 4
push eax
mov eax, dword [edx + 0x50]
push ecx
call eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
test eax, eax
jl 0x40ffb5
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x40ffb5
lea edx, [esp + 0x40]
mov dword [esp + 0x40], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
cmp eax, edi
jl 0x40ffa9
push str.PARAM
mov dword [esp + 0x34], edi
call ebp
mov ebp, eax
cmp ebp, edi
mov dword [esp + 0x60], ebp
je 0x40fbdd
mov byte [esp + 0x98], 4
xor esi, esi
cmp dword [esp + 0x40], edi
jle 0x40ff9a
lea ecx, [ecx]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push esi
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, edi
jl 0x40ff7f
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x40ff7f
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x41b224]
test eax, eax
jbe 0x40ff29
mov edx, dword [esp + 0x20]
push edx
call dword [0x41b224]
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [0x41b244]
mov ecx, dword [esp + 0x20]
push edi
push 0x400
push ebp
push ecx
call fcn.00418584
cmp eax, 1
mov eax, dword [esp + 0x30]
jne 0x40ff8e
mov edx, dword [eax]
mov edx, dword [edx + 0x68]
lea ecx, [esp + 0x20]
push ecx
push eax
call edx
cmp eax, edi
jl 0x40ff6f
cmp eax, 1
je 0x40ff6f
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], eax
push ecx
lea eax, [esp + 0x38]
call fcn.00408a00
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x30], edi
add esi, 1
cmp esi, dword [esp + 0x40]
jl 0x40fed0
jmp 0x40ff9a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x30], edi
push ebp
mov byte [esp + 0x9c], 3
call dword [0x41b220]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xa0]
mov eax, dword [eax]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x54]
call eax
mov esi, eax
cmp esi, edi
jl 0x41056b
mov esi, dword [esp + 0x34]
cmp esi, edi
je 0x410047
push esi
call dword [0x41b1fc]
mov eax, esi
lea ecx, [esp + 0x7c]
mov dword [esp + 0x34], edi
call fcn.0040aa20
mov byte [esp + 0x98], 5
mov esi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x90]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x94]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x98]
add ecx, 4
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x48]
push ecx
call eax
lea ecx, [esp + 0x7c]
push ecx
mov byte [esp + 0x9c], 3
call dword [0x41b1e8]
mov eax, dword [esp + 0xac]
cmp eax, 1
jne 0x410191
mov ebp, dword [esp + 0x2c]
mov edx, dword [ebp + 4]
add ebp, 4
push eax
mov eax, dword [edx + 0x78]
push ebp
call eax
lea ecx, [esp + 0x6c]
push ecx
call dword [0x41b1e8]
cmp ebx, str.swClassProgId
je 0x41009b
push ebx
call dword [0x41b220]
push str.swClassProgId
call dword [0x41b228]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x24], ebx
je 0x40fbdd
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push eax
call edx
test eax, eax
jl 0x4100f7
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4100f7
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x74]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
call fcn.004021c0
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp]
mov edx, dword [eax + 0x38]
push ecx
push ebp
call edx
xor edi, edi
lea eax, [esp + 0x6c]
push eax
call dword [0x41b1e8]
cmp ebx, str.swClassGUID
je 0x41012a
push ebx
call dword [0x41b220]
push str.swClassGUID
call dword [0x41b228]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x24], ebx
je 0x40fbdd
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, edi
jl 0x4104aa
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4104aa
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x74]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
call fcn.004021c0
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp]
mov edx, dword [eax + 0x40]
push ecx
push ebp
call edx
jmp 0x4104aa
cmp eax, 2
jne 0x4103d2
mov dword [esp + 0x30], edi
mov byte [esp + 0x98], 6
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 0x30]
mov esi, dword [0x41b224]
push ecx
call esi
test eax, eax
jbe 0x4101db
mov edx, dword [esp + 0x30]
push edx
call esi
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [0x41b244]
lea ecx, [esp + 0x30]
push ecx
mov eax, str.MESSAGE
call fcn.0040a9d0
mov ebp, dword [esp + 0x2c]
add ebp, 4
test al, al
je 0x410205
mov edx, dword [ebp]
mov eax, dword [edx + 0x78]
push 3
push ebp
call eax
jmp 0x4102fc
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x78]
push 2
push ebp
call edx
mov ebx, dword [0x41b1e8]
lea eax, [esp + 0x6c]
push eax
call ebx
mov esi, str.swClassProgId
lea edi, [esp + 0x24]
call fcn.004021c0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x410289
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x410289
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x74]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
call fcn.004021c0
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp]
mov edx, dword [eax + 0x38]
push ecx
push ebp
call edx
lea eax, [esp + 0x6c]
push eax
call ebx
mov esi, str.swClassGUID
lea edi, [esp + 0x24]
call fcn.004021c0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x4102fc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4102fc
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x74]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
call fcn.004021c0
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp]
mov edx, dword [eax + 0x40]
push ecx
push ebp
call edx
lea eax, [esp + 0x6c]
push eax
call dword [0x41b1e8]
mov esi, str.LaunchDate
lea edi, [esp + 0x24]
call fcn.004021c0
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x4103ba
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4103ba
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x74]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
call fcn.004021c0
mov edi, dword [esp + 0x20]
lea ebx, [esp + 0x58]
call fcn.004106b0
test eax, eax
je 0x410395
mov ebx, dword [esp + 0x58]
push ebx
call dword [0x41b1a4]
add esp, 4
push ebx
mov esi, eax
mov edi, edx
call dword [0x41b038]
jmp 0x41039d
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov ebx, dword [ebp]
push 0
push 0x3e8
push edi
push esi
call fcn.00419180
push edx
push eax
mov eax, dword [ebx + 0x58]
push ebp
call eax
mov ebx, dword [esp + 0x24]
mov byte [esp + 0x98], 3
mov ecx, dword [esp + 0x30]
push ecx
call dword [0x41b220]
jmp 0x4104aa
cmp eax, 3
jne 0x4105a4
mov ebp, dword [esp + 0x2c]
mov edx, dword [ebp + 4]
add ebp, 4
push eax
mov eax, dword [edx + 0x78]
push ebp
call eax
lea ecx, [esp + 0x6c]
push ecx
call dword [0x41b1e8]
mov esi, str.LaunchDate
lea edi, [esp + 0x24]
call fcn.004021c0
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push eax
call edx
test eax, eax
jl 0x4104aa
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4104aa
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x74]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
call fcn.004021c0
mov edi, dword [esp + 0x20]
lea ebx, [esp + 0x5c]
call fcn.004106b0
test eax, eax
je 0x410485
mov ebx, dword [esp + 0x5c]
push ebx
call dword [0x41b1a4]
add esp, 4
push ebx
mov esi, eax
mov edi, edx
call dword [0x41b038]
jmp 0x41048d
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov ebx, dword [ebp]
push 0
push 0x3e8
push edi
push esi
call fcn.00419180
push edx
push eax
mov eax, dword [ebx + 0x58]
push ebp
call eax
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x48], 0
mov ecx, dword [eax]
push 0x41b2ec
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [esp + 0x44]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x34]
test esi, esi
je 0x4104fe
push esi
call dword [0x41b1fc]
test eax, eax
jl 0x4104fe
push esi
call dword [0x41b200]
mov byte [esp + 0x98], 1
mov eax, dword [esp + 0x20]
push eax
call dword [0x41b220]
mov esi, dword [esp + 0xa8]
mov ebp, dword [esp + 0x4c]
xor edi, edi
add ebp, 1
cmp ebp, dword [esp + 0x50]
mov dword [esp + 0x4c], ebp
jl 0x40fb51
mov eax, dword [esp + 0x48]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push ebx
call dword [0x41b220]
lea ecx, [esp + 0x6c]
push ecx
call dword [0x41b1e8]
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x10
mov ebp, dword [esp + 0x34]
cmp ebp, edi
je 0x410585
push ebp
call dword [0x41b1fc]
test eax, eax
jl 0x410585
push ebp
call dword [0x41b200]
mov ecx, dword [esp + 0x20]
mov edi, dword [0x41b220]
push ecx
call edi
push ebx
call edi
lea edx, [esp + 0x6c]
push edx
call dword [0x41b1e8]
mov eax, esi
jmp 0x41054f
lea esi, [esp + 0x34]
call fcn.00410c50
mov eax, dword [esp + 0x20]
mov esi, dword [0x41b220]
push eax
call esi
push ebx
call esi
lea ecx, [esp + 0x6c]
push ecx
call dword [0x41b1e8]
mov eax, 0x80004001
jmp 0x41054f