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

Disassembly:
push 0xffffffffffffffff
push 0x1007bfe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
mov eax, dword [esp + 0x80]
push ebx
push ebp
mov ebp, dword [esp + 0x84]
push esi
push edi
push 2
lea edi, [ebp + 0x2c]
mov esi, ecx
push edi
mov dword [eax], 1
mov ecx, dword [esi + 4]
xor ebx, ebx
push ebx
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp + 0xc]
add eax, 0xffff15a0
cmp eax, 0xb
mov dword [esp + 0x18], ebx
ja case.0x1002dce9.60002
movzx edx, byte [eax + 0x1002e0d4]
jmp dword [edx*4 + 0x1002e0c0]
push str.DownloadToolbar
lea ecx, [esp + 0x18]
call fcn.10005e50
lea eax, [esp + 0x18]
push eax
push 0x4aac
lea ecx, [esp + 0x1c]
push ecx
push SysReAllocStringLen
mov dword [esp + 0x90], ebx
call fcn.1004a560
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
mov dword [esp + 0x80], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1002dd4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x70]
push ebx
push ebx
push 0x146
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x1002dd83
cmp dword [esp + 0x18], ebx
je 0x1002dd83
push ebx
lea ecx, [esp + 0x28]
lea edi, [esi + 0x174]
push ecx
mov ecx, edi
call fcn.10028db0
mov edx, dword [eax]
push ebx
push 0x9c41
push edx
jmp 0x1002dda0
push ebx
lea eax, [esp + 0x2c]
lea edi, [esi + 0x174]
push eax
mov ecx, edi
call fcn.10028db0
mov ecx, dword [eax]
push 1
push 0x9c41
push ecx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov dword [esp + 0x90], ebx
lea ecx, [ecx]
xor edx, edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, edi
mov dword [esp + 0x50], 0x30
mov dword [esp + 0x54], 0x183
mov dword [esp + 0x7c], edx
call fcn.10028db0
mov edx, dword [esp + 0x90]
mov eax, dword [eax]
lea ecx, [esp + 0x48]
push ecx
push 1
push edx
push eax
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
cmp dword [esp + 0x50], 0x800
je 0x1002df17
mov eax, dword [esp + 0x74]
test eax, eax
je 0x1002df0b
push 0
mov dword [esp + 0x84], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x74]
mov esi, eax
push ecx
push esi
mov dword [esp + 0x38], esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push 0
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_GetPixel]
push 4
mov ebx, eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esp + 0x10]
push edx
push esi
mov ebp, eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp ebx, ebp
je 0x1002deea
mov eax, dword [esp + 0x74]
push ebp
push ebx
push eax
mov dword [esp + 0x1c], eax
call fcn.1001d940
add esp, 0xc
mov dword [esp + 0x74], eax
push 0
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call fcn.10028db0
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x94]
push edx
mov edx, dword [eax]
push 0x404
push ecx
push edx
call dword [sym.imp.USER32.dll_ModifyMenuA]
push 0
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call fcn.10028db0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov eax, dword [eax]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
test esi, esi
mov dword [esp + 0x80], 0xffffffff
je 0x1002df00
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebp, dword [esp + 0x8c]
mov esi, dword [esp + 0x1c]
inc dword [esp + 0x90]
jmp 0x1002ddb0
mov eax, dword [esi + 0x288]
mov ecx, dword [esi + 0x1e0]
push eax
push ecx
xor ebx, ebx
call fcn.10068d19
add esp, 8
test eax, eax
jne 0x1002df42
mov eax, dword [esi + 0x274]
test eax, eax
je 0x1002df42
mov ebx, 8
push 0
lea edx, [esp + 0x40]
push edx
mov ecx, edi
call fcn.10028db0
mov eax, dword [eax]
push ebx
push 0x9c48
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 0
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
call fcn.10028db0
mov edx, dword [esi + 4]
mov ecx, dword [ebp + 0x38]
push 0
push edx
mov edx, dword [esp + 0x28]
push 0
push ecx
mov ecx, dword [edx]
mov edx, dword [eax]
push ecx
push 0
push edx
jmp 0x1002e0a2
call fcn.1001d2c0
cmp eax, 2
je 0x1002df99
call fcn.1001d2c0
call fcn.1001d2c0
mov ecx, dword [edi]
mov edx, dword [esi + 4]
push eax
mov eax, dword [ebp + 0x38]
push eax
push ecx
push edx
push 0x6c
lea ecx, [esi + 0x19c]
call fcn.10018160
jmp case.0x1002dce9.60002
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esi + 0x1a0]
call fcn.10028db0
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 0x38]
push ebx
push ecx
mov ecx, dword [edi]
push ebx
push edx
mov edx, dword [eax]
push ecx
push ebx
push edx
jmp 0x1002e0a2
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov edi, dword [esi + 0x1c8]
mov ebx, eax
cmp edi, dword [esi + 0x1cc]
je 0x1002e08c
lea ecx, [ecx]
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x8c], eax
lea ecx, [esp + 0x8c]
push ecx
push edi
mov dword [esp + 0x88], 2
call fcn.100214e0
mov eax, dword [edi + 8]
add esp, 8
cmp eax, 0xed80
je 0x1002e04f
mov edx, dword [esp + 0x8c]
push edx
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
mov dword [esp + 0x80], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002e07b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x1cc]
add edi, 0x24
cmp edi, eax
jne 0x1002e000
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0x38]
mov edx, dword [esp + 0x20]
push 0
push eax
mov eax, dword [edx]
push 0
push ecx
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 0xc