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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5038ef
mov eax, dword fs:[0]
push eax
sub esp, 0x120
push ebx
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
movzx esi, cx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], 0
lea edi, [ebx + 0x90]
push ecx
mov dword [esp + 0x30], esi
call fcn.0042a620
mov edx, dword [edi + 0x18]
mov eax, dword [esp + 0x1c]
mov edi, dword [edi]
mov dword [esp + 0x14], edx
test eax, eax
je 0x42186e
cmp eax, edi
je 0x421873
call fcn.004cb4f7
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x20], eax
je 0x421966
call fcn.00410fd0
mov edi, dword [eax + 4]
call fcn.00410fd0
mov ebx, dword [eax + 0x10]
call fcn.00410fd0
push esi
push edi
push ebx
call fcn.004148c0
mov edx, dword [0x54d210]
mov eax, dword [edx + 0xc]
mov ecx, 0x54d210
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
push 0x5181bc
lea edi, [esp + 0x20]
mov dword [esp + 0x140], 0
call fcn.00404c10
add esp, 8
call fcn.00410fd0
mov esi, dword [eax + 4]
call fcn.00410fd0
mov edi, dword [esp + 0x18]
mov eax, dword [eax + 0x10]
push 0x517ad8
push edi
push 2
push esi
push eax
push ecx
call fcn.00410fd0
add esp, 4
mov ecx, eax
call fcn.00415960
cmp dword [esp + 0x1c], 0
jne 0x42195e
call fcn.004cb4f7
xor eax, eax
mov esi, dword [esp + 0x20]
cmp esi, dword [eax + 0x18]
jne 0x42191c
call fcn.004cb4f7
mov esi, dword [esi + 0x10]
call fcn.00410fd0
mov edx, dword [eax + 0x30]
lea ecx, [eax + 0x30]
mov eax, dword [edx + 0x10]
push esi
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x138], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4220e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
jmp 0x4220df
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
jmp 0x42190e
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
lea edi, [ebx + 0xb0]
push edx
mov dword [esp + 0x30], esi
call fcn.0042a800
cmp dword [esp + 0x1c], 0
mov esi, dword [edi + 0x18]
mov edi, dword [edi]
je 0x421991
cmp dword [esp + 0x1c], edi
je 0x421996
call fcn.004cb4f7
mov ebx, dword [esp + 0x20]
cmp ebx, esi
je 0x4220e1
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x421ac0
call fcn.004cb4f7
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4219bf
call fcn.004cb4f7
cmp dword [ebx + 0x10], 0
jne 0x421ada
lea esi, [esp + 0x1c]
call fcn.0042ae70
mov esi, eax
add esi, 4
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [esi], eax
test eax, eax
je 0x421ada
lea esi, [esp + 0x1c]
mov dword [esp + 0x28], 1
call fcn.0042ae70
mov edi, eax
add edi, 8
lea esi, [esp + 0x10]
call fcn.0042a0e0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x421ac7
call fcn.004cb4f7
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x421a27
call fcn.004cb4f7
mov esi, dword [ebx + 0x24]
cmp dword [ebx + 0x20], esi
jbe 0x421a34
call fcn.004cb4f7
mov eax, dword [ebx + 0x14]
test edi, edi
je 0x421a3f
cmp edi, eax
je 0x421a44
call fcn.004cb4f7
cmp dword [esp + 0x14], esi
je 0x421ada
test edi, edi
jne 0x421ace
call fcn.004cb4f7
xor eax, eax
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x421a67
call fcn.004cb4f7
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov esi, dword [edx]
test eax, eax
jne 0x421ad2
call fcn.004cb4f7
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x421a86
call fcn.004cb4f7
mov eax, dword [ebx + 0x10]
push esi
mov esi, dword [esp + 0x2c]
push esi
push 0
push eax
call dword [sym.imp.USER32.dll_AppendMenuW]
inc esi
mov dword [esp + 0x28], esi
test edi, edi
jne 0x421ad6
call fcn.004cb4f7
xor eax, eax
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x421ab6
call fcn.004cb4f7
add dword [esp + 0x14], 8
jmp 0x421a0a
mov eax, dword [eax]
jmp 0x4219b5
mov eax, dword [eax]
jmp 0x421a1d
mov eax, dword [edi]
jmp 0x421a59
mov eax, dword [eax]
jmp 0x421a7c
mov eax, dword [edi]
jmp 0x421aa8
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x421cc8
call fcn.004cb4f7
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x421af7
call fcn.004cb4f7
cmp dword [ebx + 0x10], 0
je 0x4220e1
cmp dword [ebp + 0xc], 0
je 0x4220e1
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0x40]
lea ecx, [esp + 0x34]
push ecx
push eax
call edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov edi, dword [ebp + 8]
add edi, 0x30
lea eax, [esp + 0x68]
call fcn.00430a90
mov edx, dword [edi]
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x74]
lea esi, [esp + 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], eax
call fcn.0042ae70
mov esi, dword [esp + 0x28]
mov ebx, eax
add ebx, 4
call fcn.0042b330
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx]
push 0
push ecx
push 0
push edi
push eax
push 0x102
push edx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
test eax, eax
jle 0x4220e1
lea esi, [esp + 0x1c]
lea ebx, [eax - 1]
call fcn.0042ae70
mov edi, eax
add edi, 8
lea esi, [esp + 0x10]
call fcn.0042a0e0
push ebx
call fcn.0042f220
add esp, 4
lea esi, [esp + 0x1c]
call fcn.0042ae70
mov edi, eax
add edi, 8
lea esi, [esp + 0x28]
call fcn.0042b100
mov esi, eax
lea edi, [esp + 0x10]
call fcn.0042ad40
test al, al
je 0x4220e1
mov esi, edi
call fcn.0042aea0
add eax, 4
push eax
mov ecx, str.nomoretip
call fcn.00429b10
add esp, 4
test al, al
je 0x421e3f
call fcn.00410fd0
mov esi, dword [eax + 4]
call fcn.00410fd0
mov eax, dword [eax + 0x10]
push str.click_menu_item
push str.10001
push 2
push esi
push eax
push ecx
call fcn.00410fd0
add esp, 4
mov ecx, eax
call fcn.00415960
call fcn.00410fd0
mov esi, dword [eax + 0x10]
call fcn.00410fd0
push esi
call fcn.00413e90
mov esi, dword [ebp + 8]
cmp dword [esi + 0x58], 0
je 0x4220a1
mov ecx, dword [esi + 0x58]
mov eax, dword [ecx]
mov edx, dword [eax + 0x3c]
push str.nomoretip_notify
call edx
test eax, eax
je 0x4220a1
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
mov dword [esp + 0x138], 1
test esi, esi
je 0x421ccf
call fcn.00410fd0
mov eax, dword [eax + 0x10]
push 0xfde9
lea ecx, [esp + 0xb0]
push eax
lea eax, [esp + 0xb0]
mov dword [esp + 0xb0], ecx
call fcn.00418470
mov byte [esp + 0x138], 2
mov ebx, dword [esp + 0xa8]
mov eax, esi
mov dword [esp + 0x18], 1
mov dword [esi], 0
call fcn.0040c040
jmp 0x421cd1
mov eax, dword [eax]
jmp 0x421aed
xor esi, esi
push esi
lea esi, [esp + 0x38]
mov dword [esp + 0x13c], 3
call fcn.0040ec70
mov dword [esp + 0x138], 5
test byte [esp + 0x18], 1
je 0x421d13
mov eax, dword [esp + 0xa8]
lea edx, [esp + 0xac]
cmp eax, edx
je 0x421d13
push eax
call fcn.004cc15e
add esp, 4
lea eax, [esp + 0x90]
push eax
call fcn.00417860
lea ecx, [esp + 0x34]
push ecx
lea edi, [esp + 0x94]
mov byte [esp + 0x13c], 6
call fcn.00429d80
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
mov byte [esp + 0x138], 7
test esi, esi
je 0x421d6c
mov ebx, str.nomoretip_notify
mov dword [esi], 0
call fcn.0040c040
jmp 0x421d6e
xor esi, esi
push esi
lea esi, [esp + 0x2c]
mov byte [esp + 0x13c], 6
call fcn.0040ec70
lea esi, [esp + 0x1c]
mov byte [esp + 0x138], 8
call fcn.0040e9e0
mov ebx, dword [ebp + 8]
mov byte [esp + 0x138], 9
mov ecx, dword [esp + 0xa0]
sub ecx, dword [esp + 0x9c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
push 0
shr eax, 0x1f
add eax, edx
mov edx, dword [ebx + 0x58]
mov edi, dword [edx]
push 0
mov ecx, esi
push ecx
push eax
lea esi, [esp + 0xa0]
add edi, 0x40
call fcn.00429d50
mov ecx, dword [ebx + 0x58]
push eax
mov eax, dword [edi]
lea edx, [esp + 0x3c]
push edx
call eax
mov byte [esp + 0x138], 8
mov esi, vtable.os::script_shared_ptr_class__variant__.0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
call fcn.0040ea60
mov byte [esp + 0x138], 6
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], esi
call fcn.0040ea60
lea ecx, [esp + 0x90]
push ecx
mov byte [esp + 0x13c], 5
call fcn.00429cd0
mov dword [esp + 0x138], 0xffffffff
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x34]
jmp 0x42209a
lea esi, [esp + 0x10]
call fcn.0042aea0
add eax, 4
push eax
mov ecx, str.recent_nomoretip
call fcn.00429b10
add esp, 4
test al, al
je 0x4220ae
call fcn.00410fd0
mov esi, dword [eax + 4]
call fcn.00410fd0
mov eax, dword [eax + 0x10]
push str.click_menu_item
push str.10000
push 2
push esi
push eax
push ecx
call fcn.00410fd0
add esp, 4
mov ecx, eax
call fcn.00415960
call fcn.00410fd0
mov esi, dword [eax + 0x10]
call fcn.00410fd0
push esi
call fcn.00413f50
mov esi, dword [ebp + 8]
cmp dword [esi + 0x58], 0
je 0x4220a1
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 0x3c]
push str.recent_nomoretip_notify
call eax
test eax, eax
je 0x4220a1
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
mov dword [esp + 0x138], 0xa
test esi, esi
je 0x421f38
call fcn.00410fd0
mov eax, dword [eax + 0x10]
push 0xfde9
lea ecx, [esp + 0xb0]
push eax
lea eax, [esp + 0xb0]
mov dword [esp + 0xb0], ecx
call fcn.00418470
mov byte [esp + 0x138], 0xb
mov ebx, dword [esp + 0xa8]
mov eax, esi
mov dword [esp + 0x18], 2
mov dword [esi], 0
call fcn.0040c040
jmp 0x421f3a
xor esi, esi
push esi
lea esi, [esp + 0x60]
mov dword [esp + 0x13c], 0xc
call fcn.0040ec70
mov dword [esp + 0x138], 0xe
test byte [esp + 0x18], 2
je 0x421f7c
mov eax, dword [esp + 0xa8]
lea edx, [esp + 0xac]
cmp eax, edx
je 0x421f7c
push eax
call fcn.004cc15e
add esp, 4
lea eax, [esp + 0x78]
push eax
call fcn.00417860
lea ecx, [esp + 0x5c]
push ecx
lea edi, [esp + 0x7c]
mov byte [esp + 0x13c], 0xf
call fcn.00429d80
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
mov byte [esp + 0x138], 0x10
test esi, esi
je 0x421fcf
mov ebx, str.recent_nomoretip_notify
mov dword [esi], 0
call fcn.0040c040
jmp 0x421fd1
xor esi, esi
push esi
lea esi, [esp + 0x54]
mov byte [esp + 0x13c], 0xf
call fcn.0040ec70
lea esi, [esp + 0x44]
mov byte [esp + 0x138], 0x11
call fcn.0040e9e0
mov ebx, dword [ebp + 8]
mov byte [esp + 0x138], 0x12
mov ecx, dword [esp + 0x88]
sub ecx, dword [esp + 0x84]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
push 0
shr eax, 0x1f
add eax, edx
mov edx, dword [ebx + 0x58]
mov edi, dword [edx]
push 0
mov ecx, esi
push ecx
push eax
lea esi, [esp + 0x88]
add edi, 0x40
call fcn.00429d50
mov ecx, dword [ebx + 0x58]
push eax
mov eax, dword [edi]
lea edx, [esp + 0x64]
push edx
call eax
mov byte [esp + 0x138], 0x11
mov esi, vtable.os::script_shared_ptr_class__variant__.0
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], esi
call fcn.0040ea60
mov byte [esp + 0x138], 0xf
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], esi
call fcn.0040ea60
lea ecx, [esp + 0x78]
push ecx
mov byte [esp + 0x13c], 0xe
call fcn.00429cd0
mov dword [esp + 0x138], 0xffffffff
mov dword [esp + 0x5c], esi
lea ecx, [esp + 0x5c]
call fcn.0040ea60
mov esi, ebx
mov edx, dword [esi + 0x54]
mov eax, dword [edx + 0x30]
lea ecx, [esi + 0x54]
call eax
jmp 0x4220e1
lea esi, [esp + 0x10]
call fcn.0042aea0
mov ecx, dword [eax + 4]
add eax, 4
cmp dword [ecx - 0xc], 0
je 0x4220e1
call fcn.0042aea0
mov esi, dword [eax + 4]
add eax, 4
call fcn.00410fd0
mov edx, dword [eax + 0x30]
add eax, 0x30
mov ecx, eax
mov eax, dword [edx + 0x10]
push esi
call eax
xor eax, eax
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8