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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ec7eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x20c]
lea ebx, [esi + 0x208]
push edi
push eax
mov dword [esp + 0x6c], ebx
call dword [sym.imp.USER32.dll_IsMenu]
xor ebp, ebp
test eax, eax
jne 0x419fd4
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
mov ecx, ebx
call fcn.004d50a5
jmp 0x419ff0
mov edi, dword [sym.imp.USER32.dll_RemoveMenu]
lea ebx, [ebx]
mov ecx, dword [ebx + 4]
push 0x400
push ebp
push ecx
call edi
test eax, eax
jne 0x419fe0
push 0xffffffffffffffff
lea ecx, [esi + 0x220]
push ebp
mov dword [esp + 0x78], ecx
call fcn.0040faa0
push 0xffffffffffffffff
lea ecx, [esi + 0x260]
push ebp
mov dword [esp + 0x68], ecx
call fcn.00431e70
push 0xffffffffffffffff
lea ecx, [esi + 0x270]
push ebp
mov dword [esp + 0x4c], ecx
call fcn.00431e70
cmp dword [esi + 0x2d0], 2
jne 0x41aa72
xor eax, eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x30], 0x80e8
mov dword [esp + 0x48], 0x814c
mov dword [esp + 0x38], eax
mov esi, dword [esi + 0x11c]
cmp esi, ebp
mov dword [esp + 0x17c], ebp
je 0x41aa5d
mov edx, dword [esi]
lea eax, [esp + 0x38]
push eax
push esi
call dword [edx + 0x14]
test eax, eax
jl 0x41aa59
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
push ebp
lea edx, [esp + 0x18]
push edx
push 1
push eax
mov byte [esp + 0x18c], 1
call dword [ecx + 0xc]
test eax, eax
jne 0x41aa43
jmp 0x41a0a0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00467040
add esp, 8
mov edx, dword [esp + 0x18]
cmp dword [edx - 0xc], 0x2b
mov byte [esp + 0x17c], 2
jl 0x41a157
push 0x28
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x20]
call fcn.00406da0
push 0x4fb820
push eax
lea ecx, [esp + 0x90]
push ecx
mov byte [esp + 0x188], 3
call fcn.00410a70
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x180], 4
call fcn.00406f20
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a131
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a157
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x4fb810]
mov edx, dword [0x4fb818]
mov ecx, dword [0x4fb814]
mov dword [esp + 0x9c], eax
mov eax, dword [0x4fb81c]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x9c]
push edx
mov dword [esp + 0xa4], ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov ecx, 4
mov edi, 0x5075b4
lea esi, [esp + 0x9c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x41a2d8
mov ecx, dword [esp + 0x14]
xor ebp, ebp
push ebp
push ecx
call fcn.00465d90
mov edi, eax
add esp, 8
cmp edi, ebp
mov dword [esp + 0x58], edi
je 0x41a1d6
mov edx, dword [edi]
push edi
call dword [edx + 4]
cmp edi, ebp
mov byte [esp + 0x17c], 5
je 0x41a2bd
mov eax, dword [edi]
lea ecx, [esp + 0xe0]
push ecx
push edi
call dword [eax + 0x1c]
test eax, eax
jl 0x41a2bd
mov edx, dword [esp + 0x124]
mov esi, dword [edx + 0x40]
cmp esi, 3
ja case.default.0x41a20b
jmp dword [esi*4 + 0x41aa94]
push str.__RGB_
lea ecx, [esp + 0x1c]
call fcn.00415410
jmp 0x41a2bd
push str.__RLE4_
lea ecx, [esp + 0x1c]
call fcn.00415410
jmp 0x41a2bd
push str.__RLE8_
lea ecx, [esp + 0x1c]
call fcn.00415410
jmp 0x41a2bd
push str.__BITF_
lea ecx, [esp + 0x1c]
call fcn.00415410
jmp 0x41a2bd
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x88]
call fcn.00406320
mov ecx, esi
shr ecx, 0x18
and ecx, 0xff
push ecx
mov edx, esi
shr edx, 0x10
mov ecx, esi
and edx, 0xff
push edx
mov edx, dword [eax]
shr ecx, 8
and ecx, 0xff
push ecx
and esi, 0xff
push esi
push edx
lea eax, [esp + 0x2c]
push str._s___c_c_c_c_
push eax
mov byte [esp + 0x198], 6
call fcn.00407a50
add esp, 0x1c
lea ecx, [esp + 0x84]
call fcn.00402a10
cmp edi, ebp
mov byte [esp + 0x17c], 2
je 0x41a38f
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
jmp 0x41a38f
mov ecx, 4
mov edi, 0x5075a4
lea esi, [esp + 0x9c]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x41a38d
mov eax, dword [esp + 0x14]
xor ebp, ebp
push ebp
push eax
call fcn.00465d90
mov esi, eax
add esp, 8
cmp esi, ebp
mov dword [esp + 0x58], esi
je 0x41a313
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
cmp esi, ebp
mov byte [esp + 0x17c], 7
je 0x41a379
mov edx, dword [esi]
lea eax, [esp + 0x128]
push eax
push esi
call dword [edx + 0x1c]
test eax, eax
jl 0x41a379
mov ecx, dword [esp + 0x16c]
mov di, word [ecx]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x90]
call fcn.00406320
mov edx, dword [eax]
movzx ecx, di
push ecx
push edx
lea eax, [esp + 0x20]
push str._s__0x_04x_
push eax
mov byte [esp + 0x18c], 8
call fcn.00407a50
add esp, 0x10
lea ecx, [esp + 0x8c]
call fcn.00402a10
cmp esi, ebp
mov byte [esp + 0x17c], 2
je 0x41a38f
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
jmp 0x41a38f
xor ebp, ebp
push 8
call fcn.004d2f6a
add esp, 4
cmp eax, ebp
je 0x41a3aa
mov dword [eax], vtable.CMenu.0
mov dword [eax + 4], ebp
mov edi, eax
jmp 0x41a3ac
xor edi, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x64], edi
mov byte [esp + 0x17c], 9
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
mov ecx, edi
call fcn.004d50a5
mov eax, dword [esp + 0x14]
xor ebx, ebx
xor ecx, ecx
cmp eax, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ecx
je 0x41a3f5
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push 0x4f99a0
push eax
call dword [edx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
cmp ecx, ebp
mov byte [esp + 0x17c], 0xa
je 0x41a465
lea eax, [esp + 0x94]
push eax
mov dword [esp + 0x9c], ebp
mov edx, dword [ecx]
push ecx
call dword [edx + 0xc]
test eax, eax
jl 0x41a461
cmp dword [esp + 0x94], ebp
jbe 0x41a461
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x64]
call fcn.0040f9c0
mov edx, dword [esp + 0x30]
mov eax, dword [edi + 4]
push 0x4fb77c
push edx
push ebp
push eax
call dword [sym.imp.USER32.dll_AppendMenuW]
mov eax, dword [esp + 0x98]
cmp eax, ebp
je 0x41a458
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ebx, 1
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp eax, ebp
mov byte [esp + 0x17c], 0xb
je 0x41a608
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call dword [ecx + 0x28]
test eax, eax
jl 0x41a600
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push ebp
lea edx, [esp + 0x20]
push edx
push 1
push eax
mov byte [esp + 0x18c], 0xc
call dword [ecx + 0xc]
test eax, eax
jne 0x41a5ea
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.00467140
add esp, 8
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
xor ecx, ecx
cmp eax, ebp
mov byte [esp + 0x17c], 0xd
mov dword [esp + 0x20], ecx
je 0x41a4f3
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push 0x4f99a0
push eax
call dword [edx]
mov ecx, dword [esp + 0x20]
cmp esi, ebp
je 0x41a501
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov ecx, dword [esp + 0x20]
cmp ecx, ebp
je 0x41a594
lea edx, [esp + 0x7c]
push edx
mov dword [esp + 0x84], ebp
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
test eax, eax
jl 0x41a594
cmp dword [esp + 0x7c], ebp
jbe 0x41a594
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x60]
push eax
call fcn.0040f9c0
push str.__pin_
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x80]
push edx
call fcn.00410a70
mov eax, dword [eax]
mov edx, dword [edi + 4]
add esp, 0xc
push eax
mov eax, dword [esp + 0x34]
lea ecx, [ebx + eax]
push ecx
push ebp
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov eax, dword [esp + 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a581
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x80]
cmp eax, ebp
je 0x41a593
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
inc ebx
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a5ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x41a5c8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
push ebp
lea ecx, [esp + 0x20]
push ecx
push 1
mov dword [esp + 0x28], ebp
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
test eax, eax
je 0x41a4b4
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebp
mov byte [esp + 0x17c], 0xb
je 0x41a600
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
cmp ecx, ebp
mov byte [esp + 0x17c], 0xa
je 0x41a61e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov dword [esp + 0x28], ebp
je 0x41a635
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 0x4f99b0
push eax
call dword [ecx]
mov eax, dword [esp + 0x28]
cmp eax, ebp
mov byte [esp + 0x17c], 0xe
je 0x41a8a1
xor esi, esi
mov dword [esp + 0x3c], esi
or ebx, 0xffffffff
mov dword [esp + 0x1c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], esi
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
push edx
push eax
mov byte [esp + 0x184], 0x10
call dword [ecx + 0xc]
mov eax, dword [esp + 0x3c]
cmp eax, esi
jbe 0x41a698
cmp dword [esp + 0x2c], esi
jle 0x41a698
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
push esi
push esi
push 0x800
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x58], edx
jbe 0x41a857
lea ebx, [ebx]
mov eax, dword [esp + 0x44]
mov esi, dword [eax + 4]
cmp esi, dword [eax + 8]
mov edi, dword [esp + 0x28]
jb 0x41a6d5
mov ecx, dword [esp + 0x44]
lea eax, [esi + 1]
push eax
call fcn.00404f30
test al, al
je 0x41aa88
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
lea eax, [edx + esi*4]
test eax, eax
je 0x41a6ee
test edi, edi
mov dword [eax], edi
je 0x41a6ee
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x44]
push edx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x58]
push edx
lea edx, [esp + 0xbc]
push edx
xor esi, esi
lea edx, [esp + 0xa4]
push edx
inc ecx
push esi
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x44]
push ebp
mov dword [esp + 0x6c], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0x3c], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
cmp dword [esp + 0x4c], ebx
je 0x41a75f
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x58]
jbe 0x41a75f
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 4]
push esi
push esi
push 0x800
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
cmp dword [esp + 0x1c], esi
mov ebx, dword [esp + 0x4c]
jne 0x41a7cf
push 0x4fb730
lea ecx, [esp + 0x58]
call fcn.00403260
mov eax, dword [esp + 0x54]
mov eax, dword [eax - 0xc]
lea ecx, [eax + eax + 8]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
lea ecx, [ebp + 1]
cmp ecx, 0x3e7
mov dword [esp + 0x1c], eax
jb 0x41a79d
mov ecx, 0x3e7
mov edx, dword [esp + 0x54]
push ecx
push edx
push str._s__d
push eax
call fcn.004b82c2
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a7cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x70]
call fcn.00403260
mov eax, dword [eax]
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 4]
push eax
push edi
push esi
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov eax, dword [esp + 0x6c]
inc edi
add eax, 0xfffffff0
mov dword [esp + 0x48], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a817
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x40]
inc ebp
cmp eax, esi
je 0x41a831
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
cmp eax, esi
mov dword [esp + 0x40], esi
je 0x41a843
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
xor ecx, ecx
cmp ebp, eax
mov dword [esp + 0x24], ecx
jb 0x41a6b0
jmp 0x41a85b
mov ecx, dword [esp + 0x24]
test eax, eax
jne 0x41a879
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41a879
mov dword [esp + 0x28], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x24]
test ecx, ecx
mov byte [esp + 0x17c], 0xf
je 0x41a88b
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [esp + 0x40]
test eax, eax
mov byte [esp + 0x17c], 0xe
je 0x41a8a1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esp + 0x2c], 1
jne 0x41a8d1
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x41a8d1
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [ecx + 4]
push eax
push 0
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
xor ebp, ebp
jmp 0x41a995
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x68]
mov ecx, dword [esi + 4]
push eax
push edi
push 0x403
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov eax, dword [esp + 0x2c]
xor ebp, ebp
cmp eax, ebp
mov eax, dword [esp + 0x28]
jg 0x41a904
cmp eax, ebp
je 0x41a999
mov ebx, dword [esp + 0x34]
cmp dword [esp + 0x20], ebp
mov dword [esp + 0xb0], 0x30
mov dword [esp + 0xb4], 5
mov dword [esp + 0xb8], 0x10
mov edx, dword [ebx + 4]
mov dword [esp + 0xc4], edx
jne 0x41a948
cmp eax, ebp
mov dword [esp + 0xbc], 3
je 0x41a94f
mov dword [esp + 0xbc], ebp
mov ecx, dword [esi + 4]
lea eax, [esp + 0xb0]
push eax
push 1
push edi
push ecx
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov edi, dword [esp + 0x70]
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jb 0x41a983
lea edx, [esi + 1]
push edx
mov ecx, edi
call fcn.00404f30
test al, al
je 0x41aa88
mov eax, dword [edi]
lea eax, [eax + esi*4]
cmp eax, ebp
je 0x41a992
mov dword [esp + 0x64], ebp
mov dword [eax], ebx
inc dword [edi + 4]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x50]
add esi, ecx
inc edx
cmp eax, ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x50], edx
mov byte [esp + 0x17c], 0xa
je 0x41a9c2
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x20]
cmp eax, ebp
mov byte [esp + 0x17c], 9
je 0x41a9d8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x64]
cmp ecx, ebp
mov byte [esp + 0x17c], 2
je 0x41a9ef
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41aa15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x41aa23
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x38]
push ebp
lea ecx, [esp + 0x18]
push ecx
push 1
mov dword [esp + 0x20], ebp
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
test eax, eax
je 0x41a0a0
xor ebp, ebp
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov byte [esp + 0x17c], 0
je 0x41aa59
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x38]
cmp eax, ebp
mov dword [esp + 0x17c], 0xffffffff
je 0x41aa72
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x174]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.00401d80
mov edi, edi
adc ah, byte [edx - 0x5dc7ffbf]
inc ecx
add byte [0x480041a2], ah
mov byte [0x90900041], al
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop