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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ae59
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x44a874]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x44a874]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [esp + 0x80]
push eax
mov edi, ecx
call fcn.0040c970
mov dword [esp + 0xc0], 0
cmp dword [esp + 0xa8], 8
mov ebx, dword [esp + 0x94]
jae 0x40d4f6
lea ebx, [esp + 0x94]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push str.OnClick
push ebx
mov dword [esp + 0x1c], ebx
call esi
push str.OnPALoadSuccessed
push ebx
call esi
test eax, eax
jne 0x40d5c4
push 0x40ff80
push 0x40ff70
push 3
push 0x10
lea ecx, [esp + 0x3c]
push ecx
call fcn.0042342a
lea edx, [esp + 0x2c]
push edx
lea esi, [esp + 0x80]
mov byte [esp + 0xc4], 1
call fcn.0040cc20
lea eax, [esp + 0x3c]
push eax
call fcn.0040cc20
lea ecx, [esp + 0x4c]
push ecx
call fcn.0040cc20
lea esi, [edi + 0xc]
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x40d570
call fcn.00421af8
lea ecx, [ecx]
mov ebx, dword [esi + 8]
cmp dword [esi + 4], ebx
jbe 0x40d57d
call fcn.00421af8
cmp esi, esi
je 0x40d586
call fcn.00421af8
cmp edi, ebx
je 0x40d935
cmp edi, dword [esi + 8]
jb 0x40d598
call fcn.00421af8
mov ecx, dword [edi]
test ecx, ecx
je 0x40d5b5
movsx eax, word [esp + 0x54]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x3c]
push eax
call edx
cmp edi, dword [esi + 8]
jb 0x40d5bf
call fcn.00421af8
add edi, 4
jmp 0x40d570
push str.OnPAClick
push ebx
call esi
test eax, eax
jne 0x40d6c2
push 0x40ff80
push 0x40ff70
push 3
push 0x10
lea ecx, [esp + 0x3c]
push ecx
call fcn.0042342a
lea edx, [esp + 0x2c]
push edx
lea esi, [esp + 0x80]
mov byte [esp + 0xc4], 2
call fcn.0040cc20
lea eax, [esp + 0x3c]
push eax
call fcn.0040cc20
lea ecx, [esp + 0x4c]
push ecx
call fcn.0040cc20
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x40d635
mov eax, dword [esp + 0x88]
sub eax, ecx
sar eax, 4
cmp eax, 3
jge 0x40d65e
push 0x40ff80
push 3
push 0x10
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0xd0], 0
call fcn.004234ed
lea ecx, [esp + 0x7c]
call fcn.0040cbd0
jmp 0x40df20
mov esi, dword [edi + 0x10]
add edi, 0xc
cmp esi, dword [edi + 8]
jbe 0x40d670
call fcn.00421af8
mov edi, edi
mov ebx, dword [edi + 8]
cmp dword [edi + 4], ebx
jbe 0x40d67d
call fcn.00421af8
cmp edi, edi
je 0x40d686
call fcn.00421af8
cmp esi, ebx
je 0x40d777
cmp esi, dword [edi + 8]
jb 0x40d698
call fcn.00421af8
mov ecx, dword [esi]
test ecx, ecx
je 0x40d6b3
mov edx, dword [esp + 0x54]
mov eax, dword [ecx]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x3c]
push edx
call eax
cmp esi, dword [edi + 8]
jb 0x40d6bd
call fcn.00421af8
add esi, 4
jmp 0x40d670
push str.OnPALoadEnd
push ebx
call esi
test eax, eax
jne 0x40d797
push 0x40ff80
push 0x40ff70
push 3
push 0x10
lea edx, [esp + 0x3c]
push edx
call fcn.0042342a
lea eax, [esp + 0x2c]
push eax
lea esi, [esp + 0x80]
mov byte [esp + 0xc4], 3
call fcn.0040cc20
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040cc20
lea edx, [esp + 0x4c]
push edx
call fcn.0040cc20
lea esi, [edi + 0xc]
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x40d727
call fcn.00421af8
mov ebx, dword [esi + 8]
cmp dword [esi + 4], ebx
jbe 0x40d734
call fcn.00421af8
cmp esi, esi
je 0x40d73d
call fcn.00421af8
cmp edi, ebx
je 0x40d777
cmp edi, dword [esi + 8]
jb 0x40d74b
call fcn.00421af8
mov ecx, dword [edi]
test ecx, ecx
je 0x40d768
movsx edx, word [esp + 0x54]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push edx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x3c]
push edx
call eax
cmp edi, dword [esi + 8]
jb 0x40d772
call fcn.00421af8
add edi, 4
jmp 0x40d727
push 0x40ff80
push 3
push 0x10
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0xd0], 0
call fcn.004234ed
jmp 0x40dec5
push str.OnRemoteLoadSuccessed
push ebx
call esi
test eax, eax
jne 0x40d85f
push 0x40ff80
push 0x40ff70
push 4
push 0x10
lea edx, [esp + 0x3c]
push edx
call fcn.0042342a
lea eax, [esp + 0x2c]
push eax
lea esi, [esp + 0x80]
mov byte [esp + 0xc4], 4
call fcn.0040cc20
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040cc20
lea edx, [esp + 0x4c]
push edx
call fcn.0040cc20
lea eax, [esp + 0x5c]
push eax
call fcn.0040cc20
lea esi, [edi + 0xc]
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x40d806
call fcn.00421af8
mov ebx, dword [esi + 8]
cmp dword [esi + 4], ebx
jbe 0x40d813
call fcn.00421af8
cmp esi, esi
je 0x40d81c
call fcn.00421af8
cmp edi, ebx
je 0x40dbb1
cmp edi, dword [esi + 8]
jb 0x40d82e
call fcn.00421af8
mov ecx, dword [edi]
test ecx, ecx
je 0x40d850
movsx eax, word [esp + 0x64]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push eax
mov eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x40]
push eax
call edx
cmp edi, dword [esi + 8]
jb 0x40d85a
call fcn.00421af8
add edi, 4
jmp 0x40d806
push str.OnLoadSuccessed
push ebx
call esi
test eax, eax
jne 0x40d955
push 0x40ff80
push 0x40ff70
push 3
push 0x10
lea ecx, [esp + 0x3c]
push ecx
call fcn.0042342a
lea edx, [esp + 0x2c]
push edx
lea esi, [esp + 0x80]
mov byte [esp + 0xc4], 5
call fcn.0040cc20
lea eax, [esp + 0x3c]
push eax
call fcn.0040cc20
lea ecx, [esp + 0x4c]
push ecx
call fcn.0040cc20
add edi, 0xc
lea esi, [esp + 0x1c]
mov dword [esp + 0x28], edi
call fcn.0040f360
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
lea esp, [esp]
mov eax, dword [esp + 0x28]
mov edi, dword [eax + 8]
cmp dword [eax + 4], edi
jbe 0x40d8e5
call fcn.00421af8
mov eax, dword [esp + 0x28]
test ebx, ebx
je 0x40d8ed
cmp ebx, eax
je 0x40d8f2
call fcn.00421af8
cmp esi, edi
je 0x40d935
test ebx, ebx
jne 0x40d8ff
call fcn.00421af8
cmp esi, dword [ebx + 8]
jb 0x40d909
call fcn.00421af8
mov ecx, dword [esi]
test ecx, ecx
je 0x40d926
movsx eax, word [esp + 0x54]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
push eax
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x3c]
push eax
call edx
cmp esi, dword [ebx + 8]
jb 0x40d930
call fcn.00421af8
add esi, 4
jmp 0x40d8d0
push 0x40ff80
push 3
push 0x10
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0xd0], 0
call fcn.004234ed
jmp 0x40dec5
push str.OnClick
push ebx
call esi
test eax, eax
jne 0x40da44
push 0x40ff80
push 0x40ff70
push 2
push 0x10
lea ecx, [esp + 0x3c]
push ecx
call fcn.0042342a
lea edx, [esp + 0x2c]
push edx
lea esi, [esp + 0x80]
mov byte [esp + 0xc4], 6
call fcn.0040cc20
lea eax, [esp + 0x3c]
push eax
call fcn.0040cc20
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x40d9bc
mov eax, dword [esp + 0x88]
sub eax, ecx
sar eax, 4
cmp eax, 2
jge 0x40d9e5
push 0x40ff80
push 2
push 0x10
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0xd0], 0
call fcn.004234ed
lea ecx, [esp + 0x7c]
call fcn.0040cbd0
jmp 0x40df20
add edi, 0xc
lea esi, [esp + 0x14]
call fcn.0040f360
mov esi, dword [edi + 8]
cmp dword [edi + 4], esi
jbe 0x40d9fe
call fcn.00421af8
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40da0a
cmp eax, edi
je 0x40da0f
call fcn.00421af8
cmp dword [esp + 0x18], esi
je 0x40dc86
lea esi, [esp + 0x14]
call fcn.0040f500
mov ecx, dword [eax]
test ecx, ecx
je 0x40da39
mov eax, dword [esp + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push eax
mov eax, dword [esp + 0x38]
push eax
call edx
lea esi, [esp + 0x14]
call fcn.0040f520
jmp 0x40d9f1
push str.OnPlayEnd
push ebx
call esi
test eax, eax
jne 0x40dade
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 0x6c]
push edx
lea esi, [esp + 0x80]
mov byte [esp + 0xc4], 7
call fcn.0040cc20
add edi, 0xc
lea esi, [esp + 0x14]
call fcn.0040f360
mov esi, dword [edi + 8]
cmp dword [edi + 4], esi
jbe 0x40da91
call fcn.00421af8
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40da9d
cmp eax, edi
je 0x40daa2
call fcn.00421af8
cmp dword [esp + 0x18], esi
je 0x40dace
lea esi, [esp + 0x14]
call fcn.0040f500
mov ecx, dword [eax]
test ecx, ecx
je 0x40dac3
mov eax, dword [ecx]
mov edx, dword [esp + 0x74]
mov eax, dword [eax + 0x14]
push edx
call eax
lea esi, [esp + 0x14]
call fcn.0040f520
jmp 0x40da84
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40dec5
push str.OnNewsLoadEnd
push ebx
call esi
test eax, eax
jne 0x40dbd1
push 0x40ff80
push 0x40ff70
push 4
push 0x10
lea edx, [esp + 0x3c]
push edx
call fcn.0042342a
lea eax, [esp + 0x2c]
push eax
lea esi, [esp + 0x80]
mov byte [esp + 0xc4], 8
call fcn.0040cc20
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040cc20
lea edx, [esp + 0x4c]
push edx
call fcn.0040cc20
lea eax, [esp + 0x5c]
push eax
call fcn.0040cc20
lea ebx, [edi + 0xc]
lea esi, [esp + 0x14]
mov edi, ebx
call fcn.0040f360
lea esi, [esp + 0x1c]
call fcn.0040f380
mov esi, eax
lea edi, [esp + 0x14]
call fcn.0040f540
test al, al
je 0x40dbb1
lea esi, [esp + 0x14]
call fcn.0040f500
mov ecx, dword [eax]
test ecx, ecx
je 0x40db8e
movsx eax, word [esp + 0x64]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
mov eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x40]
push eax
call edx
lea esi, [esp + 0x14]
call fcn.0040f520
lea esi, [esp + 0x1c]
mov edi, ebx
call fcn.0040f380
mov esi, eax
lea edi, [esp + 0x14]
call fcn.0040f540
test al, al
jne 0x40db63
push 0x40ff80
push 4
push 0x10
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0xd0], 0
call fcn.004234ed
jmp 0x40dec5
push str.OnLoadEnd
push ebx
call esi
test eax, eax
jne 0x40dca6
push 0x40ff80
push 0x40ff70
push 2
push 0x10
lea ecx, [esp + 0x3c]
push ecx
call fcn.0042342a
lea edx, [esp + 0x2c]
push edx
lea esi, [esp + 0x80]
mov byte [esp + 0xc4], 9
call fcn.0040cc20
lea eax, [esp + 0x3c]
push eax
call fcn.0040cc20
lea ebx, [edi + 0xc]
lea esi, [esp + 0x14]
mov edi, ebx
call fcn.0040f360
lea esi, [esp + 0x1c]
call fcn.0040f380
mov esi, eax
lea edi, [esp + 0x14]
call fcn.0040f540
test al, al
je 0x40dc86
lea esi, [esp + 0x14]
call fcn.0040f500
mov ecx, dword [eax]
test ecx, ecx
je 0x40dc63
movsx eax, word [esp + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
push eax
mov eax, dword [esp + 0x38]
push eax
call edx
lea esi, [esp + 0x14]
call fcn.0040f520
lea esi, [esp + 0x1c]
mov edi, ebx
call fcn.0040f380
mov esi, eax
lea edi, [esp + 0x14]
call fcn.0040f540
test al, al
jne 0x40dc42
push 0x40ff80
push 2
push 0x10
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0xd0], 0
call fcn.004234ed
jmp 0x40dec5
push str.OnSetDrawMode
push ebx
call esi
test eax, eax
jne 0x40dd84
push 0x40ff80
push 0x40ff70
push 1
push 0x10
lea ecx, [esp + 0x7c]
push ecx
call fcn.0042342a
lea edx, [esp + 0x6c]
push edx
lea esi, [esp + 0x80]
mov byte [esp + 0xc4], 0xa
call fcn.0040cc20
lea ebx, [edi + 0xc]
lea esi, [esp + 0x14]
mov edi, ebx
call fcn.0040f360
lea esi, [esp + 0x1c]
call fcn.0040f380
mov esi, eax
lea edi, [esp + 0x14]
call fcn.0040f540
test al, al
je 0x40dd64
lea esi, [esp + 0x14]
call fcn.0040f500
mov eax, dword [eax]
push 0
push 0x44be38
push 0x44be5c
push 0
push eax
call fcn.00423355
add esp, 0x14
test eax, eax
je 0x40dd41
mov ecx, dword [esp + 0x74]
mov edx, dword [eax]
mov edx, dword [edx + 0x30]
push ecx
mov ecx, eax
call edx
lea esi, [esp + 0x14]
call fcn.0040f520
lea esi, [esp + 0x1c]
mov edi, ebx
call fcn.0040f380
mov esi, eax
lea edi, [esp + 0x14]
call fcn.0040f540
test al, al
jne 0x40dd0d
push 0x40ff80
push 1
push 0x10
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0xd0], 0
call fcn.004234ed
jmp 0x40dec5
add edi, 0xc
lea esi, [esp + 0x1c]
mov dword [esp + 0x28], edi
call fcn.0040f360
lea esi, [esp + 0x6c]
call fcn.0040f380
mov esi, eax
lea edi, [esp + 0x1c]
call fcn.0040f540
test al, al
je 0x40dec5
lea esi, [esp + 0x1c]
call fcn.0040f500
mov ecx, dword [eax]
push 0
push 0x44be38
push 0x44be5c
push 0
push ecx
call fcn.00423355
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x40de9c
xor edi, edi
mov dword [esp + 0x24], edi
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0xc4], 0xb
call fcn.0040f560
push eax
call fcn.00412df0
add esp, 4
lea ecx, [ecx]
mov ecx, dword [esp + 0x84]
test ecx, ecx
jne 0x40de0f
xor eax, eax
jmp 0x40de1b
mov eax, dword [esp + 0x88]
sub eax, ecx
sar eax, 4
cmp edi, eax
jge 0x40de73
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x2c]
push ecx
lea esi, [esp + 0x80]
mov byte [esp + 0xc4], 0xc
call fcn.0040cc20
lea edx, [esp + 0x24]
push edx
call fcn.0040f5a0
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call edx
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0xc4], 0xb
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
add edi, 1
jmp 0x40de00
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx]
mov edx, dword [edx + 0x2c]
push eax
push ecx
mov ecx, ebx
call edx
mov byte [esp + 0xc0], 0
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x40de9c
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
lea esi, [esp + 0x1c]
call fcn.0040f520
mov edi, dword [esp + 0x28]
lea esi, [esp + 0x6c]
call fcn.0040f380
mov esi, eax
lea edi, [esp + 0x1c]
call fcn.0040f540
test al, al
jne 0x40ddb0
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], vtable.CFlashCallArgumentDecode.0
call fcn.0040c7c0
cmp dword [esp + 0xa8], 8
jb 0x40def0
mov eax, dword [esp + 0x94]
push eax
call fcn.00420bda
add esp, 4
mov eax, dword [esp + 0x84]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], ecx
mov word [esp + 0x94], cx
je 0x40df20
push eax
call fcn.00420bda
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00420bdf
mov esp, ebp
pop ebp
ret 8