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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x866177
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x1f0]
lea ebx, [esi + 0x1ec]
push eax
mov dword [esp + 0x68], ebx
call dword [sym.imp.USER32.dll_IsMenu]
xor edi, edi
test eax, eax
jne 0x50560f
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
mov ecx, ebx
call fcn.007d8636
jmp 0x505634
mov ebx, dword [sym.imp.USER32.dll_RemoveMenu]
jmp 0x505620
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 4]
push 0x400
push edi
push edx
call ebx
test eax, eax
jne 0x505620
mov eax, dword [esi + 0x20c]
lea ebx, [esi + 0x20c]
mov dword [esp + 0x7c], ebx
cmp eax, edi
je 0x50565f
mov ecx, dword [ebx + 4]
push ecx
push eax
call fcn.00549020
mov edx, dword [ebx]
push edx
call fcn.00803053
add esp, 0xc
mov dword [ebx], edi
lea ecx, [esi + 0x244]
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [esp + 0x68], ecx
call fcn.006161b0
lea ecx, [esi + 0x254]
mov dword [esp + 0x70], ecx
call fcn.006161b0
cmp dword [esi + 0x2e8], 2
jne 0x5062df
xor eax, eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x40], 0x7d0
mov dword [esp + 0x58], 0x834
mov dword [esp + 0x38], eax
mov esi, dword [esi + 0x114]
mov dword [esp + 0x168], edi
cmp esi, edi
je 0x5062c8
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x38]
push ecx
push esi
call edx
test eax, eax
js 0x5062c4
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x1c]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
mov byte [esp + 0x178], 1
call eax
test eax, eax
jne 0x5062ac
lea esp, [esp]
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.005c6660
add esp, 8
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0x2b
mov byte [esp + 0x168], 2
jl 0x5057c1
push 0x28
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x24]
call fcn.004ac570
push 0x40d530
push eax
lea edx, [esp + 0x94]
push edx
mov byte [esp + 0x174], 3
call fcn.004af3d0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x16c], 4
call fcn.004aa540
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
mov byte [esp + 0x168], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x505796
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x90]
add eax, 0xfffffff0
mov byte [esp + 0x168], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5057c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0xd0]
push edx
call fcn.005c2e50
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x140], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x144], edx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x140]
push 0x40bc14
push eax
mov dword [esp + 0x150], ecx
mov dword [esp + 0x154], edx
call fcn.004c17a0
add esp, 0x10
test eax, eax
je 0x505939
mov ecx, dword [esp + 0x18]
push 0
push ecx
call fcn.005c47e0
mov esi, eax
add esp, 8
mov dword [esp + 0x4c], esi
test esi, esi
je 0x505838
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x168], 5
test esi, esi
je 0x50591c
mov ecx, dword [esi]
mov eax, dword [ecx + 0x1c]
lea edx, [esp + 0xec]
push edx
push esi
call eax
test eax, eax
js 0x50591c
mov ecx, dword [esp + 0x130]
mov ebx, dword [ecx + 0x40]
cmp ebx, 3
ja case.default.0x50586f
jmp dword [ebx*4 + 0x506318]
push 0x40d520
lea ecx, [esp + 0x20]
call fcn.004aaf10
jmp 0x50591c
push 0x40d510
lea ecx, [esp + 0x20]
call fcn.004aaf10
jmp 0x50591c
push 0x40d500
lea ecx, [esp + 0x20]
call fcn.004aaf10
jmp 0x50591c
push 0x40d4f0
lea ecx, [esp + 0x20]
call fcn.004aaf10
jmp 0x50591c
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
push eax
call fcn.004a9b50
add eax, 0x10
mov dword [esp + 0x38], eax
mov edx, ebx
shr edx, 0x18
and edx, 0xff
push edx
mov ecx, ebx
shr ecx, 0x10
and ecx, 0xff
push ecx
mov edx, ebx
shr edx, 8
and edx, 0xff
push edx
movzx ecx, bl
push ecx
push eax
lea edx, [esp + 0x34]
push 0x40d4d4
push edx
mov byte [esp + 0x188], 6
call fcn.004aa600
add esp, 0x20
lea ecx, [esp + 0x34]
call fcn.004a8c20
mov byte [esp + 0x168], 2
test esi, esi
je 0x505a96
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
jmp 0x505a96
lea edx, [esp + 0x138]
push 0x40bc24
push edx
call fcn.004c17a0
add esp, 8
test eax, eax
je 0x5059f7
mov eax, dword [esp + 0x18]
push 0
push eax
call fcn.005c47e0
mov ebx, eax
add esp, 8
mov dword [esp + 0x4c], ebx
test ebx, ebx
je 0x505977
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push ebx
call edx
mov byte [esp + 0x168], 7
test ebx, ebx
je 0x5059da
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0xec]
push ecx
push ebx
call edx
test eax, eax
js 0x5059da
mov eax, dword [esp + 0x130]
movzx esi, word [eax]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
push eax
call fcn.004a9b50
add eax, 0x10
mov dword [esp + 0x38], eax
push esi
push eax
lea edx, [esp + 0x28]
push 0x40d4bc
push edx
mov byte [esp + 0x17c], 8
call fcn.004aa600
add esp, 0x14
lea ecx, [esp + 0x34]
call fcn.004a8c20
mov byte [esp + 0x168], 2
test ebx, ebx
je 0x505a96
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
jmp 0x505a96
lea edx, [esp + 0x138]
push 0x40d4ac
push edx
call fcn.004c17a0
add esp, 8
test eax, eax
jne 0x50624d
lea eax, [esp + 0x138]
push 0x407d74
push eax
call fcn.004c17a0
add esp, 8
test eax, eax
jne 0x50624d
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x4083a0
call fcn.004a8f10
lea ecx, [esp + 0xe0]
push ecx
call fcn.005c4ec0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x150], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x154], ecx
lea ecx, [esp + 0x150]
mov dword [esp + 0x158], edx
push ecx
lea edx, [esp + 0x144]
push edx
mov dword [esp + 0x164], eax
call fcn.004c17a0
add esp, 0x10
test eax, eax
jne 0x50624d
push 8
call fcn.007c8529
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x505ab7
mov edi, eax
mov dword [eax], 0x40c548
mov dword [eax + 4], ebx
mov dword [esp + 0x30], edi
jmp 0x505abd
mov dword [esp + 0x30], ebx
mov edi, ebx
mov dword [esp + 0x34], edi
mov byte [esp + 0x168], 9
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
mov ecx, edi
call fcn.007d8636
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], ebx
cmp eax, ebx
je 0x505af8
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 0x40cb70
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
push eax
mov byte [esp + 0x16c], 0xa
call fcn.004f26c0
call fcn.007cff5d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x506303
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x2c], esi
push 0x8156
mov byte [esp + 0x16c], 0xb
call fcn.007cfe78
cmp eax, ebx
je 0x505b57
push 0x8156
push eax
lea ecx, [esp + 0x34]
call fcn.004a8d10
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
mov edx, dword [edi + 4]
push esi
push ecx
push ebx
push edx
mov byte [esp + 0x178], 0xa
call dword [sym.imp.USER32.dll_AppendMenuW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x505b8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, 1
xor ecx, ecx
mov dword [esp + 0x2c], ebx
xor esi, esi
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x168], 0xc
cmp eax, esi
je 0x505dc0
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
test eax, eax
js 0x505db8
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push esi
lea edx, [esp + 0x18]
push edx
push ebx
push eax
mov eax, dword [ecx + 0xc]
mov byte [esp + 0x178], 0xd
call eax
test eax, eax
jne 0x505da0
lea ecx, [ecx]
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x64]
push edx
call fcn.005c5ce0
add esp, 8
push 0x40d4a4
push 0x4022f8
lea ecx, [esp + 0x68]
mov byte [esp + 0x170], 0xe
call fcn.004aa070
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x505c5c
mov esi, eax
xor eax, eax
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x505c4a
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x28]
push edx
push 0x40cb70
push ecx
call eax
mov eax, dword [esp + 0x28]
test esi, esi
je 0x505c5a
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov eax, dword [esp + 0x28]
xor esi, esi
cmp eax, esi
je 0x505d44
lea edx, [esp + 0x80]
mov dword [esp + 0x84], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x505d44
cmp dword [esp + 0x80], esi
jbe 0x505d44
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x6c]
call fcn.004f26c0
push 0x8157
lea ecx, [esp + 0x98]
call fcn.004a8f10
push eax
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x174], 0xf
call fcn.004ac680
mov eax, dword [eax]
mov ecx, dword [esp + 0x4c]
add esp, 0xc
push eax
mov eax, dword [edi + 4]
lea edx, [ebx + ecx]
push edx
push esi
push eax
call dword [sym.imp.USER32.dll_AppendMenuW]
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x505d06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x94]
add eax, 0xfffffff0
mov byte [esp + 0x168], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x505d31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x84]
cmp eax, esi
je 0x505d43
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
inc ebx
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov byte [esp + 0x168], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x505d6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x505d80
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push esi
lea edx, [esp + 0x18]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x505bf0
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x168], 0xc
cmp eax, esi
je 0x505db8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x168], 0xa
cmp ecx, esi
je 0x505dd8
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], esi
cmp eax, esi
je 0x505df1
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x24]
push ecx
push 0x408f28
push eax
call edx
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x168], 0x10
cmp ecx, esi
je 0x5060fe
xor esi, esi
or eax, 0xffffffff
mov dword [esp + 0x54], esi
mov dword [esp + 0x78], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x44], esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x54]
push edx
push ecx
mov byte [esp + 0x170], 0x12
call eax
mov edx, dword [esp + 0x54]
cmp edx, esi
jbe 0x505e62
cmp dword [esp + 0x2c], esi
jle 0x505e62
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 4]
push esi
push esi
push 0x800
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], esi
cmp edx, esi
jbe 0x5060a6
jmp 0x505e80
mov ebx, dword [esp + 0x70]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x24]
cmp esi, dword [ebx + 8]
jb 0x505ea3
lea ecx, [esi + 1]
push ecx
mov ecx, ebx
call fcn.00673910
test al, al
je 0x50630d
mov edx, dword [ebx]
lea eax, [edx + esi*4]
test eax, eax
je 0x505eba
mov dword [eax], edi
test edi, edi
je 0x505eba
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov eax, dword [esp + 0x24]
inc dword [ebx + 4]
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0xa8]
push ecx
xor esi, esi
lea ecx, [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x54]
push esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x3c], esi
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ecx
push eax
call edx
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x74]
je 0x505f2d
mov ecx, dword [esp + 0x4c]
cmp dword [esp + 0x58], ecx
jbe 0x505f2d
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
push esi
push esi
push 0x800
push eax
call dword [sym.imp.USER32.dll_AppendMenuW]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x74], ecx
cmp dword [esp + 0x20], esi
jne 0x505fe7
call fcn.007cff5d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x506303
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x6c], esi
push 0x8158
mov byte [esp + 0x16c], 0x13
call fcn.007cfe78
test eax, eax
je 0x505f8c
push 0x8158
push eax
lea ecx, [esp + 0x74]
call fcn.004a8d10
mov esi, dword [esp + 0x6c]
mov edi, dword [esi - 0xc]
add edi, 4
lea ecx, [edi + edi]
push ecx
mov byte [esp + 0x16c], 0x12
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ecx, dword [esp + 0x3c]
inc ecx
mov dword [esp + 0x20], eax
cmp ecx, 0x3e7
jb 0x505fba
mov ecx, 0x3e7
push ecx
push esi
push 0x40d498
push edi
push eax
call fcn.0080365a
lea eax, [esi - 0x10]
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x505fe7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x60]
call fcn.004a8f10
push 0x40d4a4
push 0x4022f8
lea ecx, [esp + 0x64]
mov byte [esp + 0x170], 0x14
call fcn.004aa070
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
push edx
push esi
push 0
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov edx, dword [esp + 0x20]
inc esi
push edx
mov dword [esp + 0x5c], esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [esp + 0x168], 0x12
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x506062
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
inc dword [esp + 0x3c]
test ecx, ecx
je 0x50607c
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x44]
test eax, eax
je 0x506096
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x54]
cmp dword [esp + 0x3c], edx
jb 0x505e80
jmp 0x5060ae
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
test edx, edx
jne 0x5060d2
mov edx, dword [esp + 0x24]
test edx, edx
je 0x5060d2
mov dword [esp + 0x24], 0
mov eax, dword [edx]
mov ecx, dword [eax + 8]
push edx
call ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
mov byte [esp + 0x168], 0x11
test eax, eax
je 0x5060ea
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x168], 0x10
test ecx, ecx
je 0x5060fe
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov edi, dword [esp + 0x2c]
cmp edi, 1
jne 0x50612d
cmp dword [esp + 0x24], 0
jne 0x50612d
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [eax + 4]
push edx
push 0
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
jmp 0x5061fc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x64]
mov ecx, dword [esi + 4]
push edx
push eax
push 0x403
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov eax, dword [esp + 0x24]
test edi, edi
jg 0x50615a
test eax, eax
je 0x506200
cmp dword [esp + 0x28], 0
mov edi, dword [esp + 0x30]
mov dword [esp + 0x9c], 0x30
mov dword [esp + 0xa0], 5
mov dword [esp + 0xa4], 0x10
mov edx, dword [edi + 4]
mov dword [esp + 0xb0], edx
jne 0x50619f
mov dword [esp + 0xa8], 3
test eax, eax
je 0x5061aa
mov dword [esp + 0xa8], 0
mov ecx, dword [esp + 0x48]
mov edx, dword [esi + 4]
lea eax, [esp + 0x9c]
push eax
push 1
push ecx
push edx
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov ebx, dword [esp + 0x7c]
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jb 0x5061e2
lea eax, [esi + 1]
push eax
mov ecx, ebx
call fcn.00673910
test al, al
je 0x50630d
mov ecx, dword [ebx]
lea esi, [ecx + esi*4]
test esi, esi
je 0x5061f5
mov dword [esp + 0x34], 0
mov dword [esi], edi
inc dword [ebx + 4]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add dword [esp + 0x40], edi
inc dword [esp + 0x48]
mov byte [esp + 0x168], 0xa
test eax, eax
je 0x50621c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x28]
mov byte [esp + 0x168], 9
test eax, eax
je 0x506234
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x168], 2
test ecx, ecx
je 0x50624d
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x168], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x506275
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x50628d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x1c]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x505700
xor edi, edi
mov eax, dword [esp + 0x18]
mov byte [esp + 0x168], 0
cmp eax, edi
je 0x5062c4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x168], 0xffffffff
cmp eax, edi
je 0x5062df
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0080262b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004a8210
push 0x8007000e
call fcn.004a8210
nop
jbe 0x506372
push eax
add byte [eax + ebx*2 + 0x58890050], bl
push eax
add byte [eax + ebx*2 - 0x3333ffb0], ch
int3
adc byte [eax], bl
inc eax
add byte [eax - 0x75], dl
int 0xe8
mov eax, 0xeb002d22
pop ss
mov edi, dword [sym.imp.USER32.dll_RemoveMenu]
mov ecx, dword [ebp + 4]
push 0x400
push 0
push ecx
call edi
test eax, eax
jne 0x506386
cmp dword [esi + 0x2e8], 2
jne 0x50657e
mov eax, dword [esi + 0x114]
push eax
push 0x407dc8
call fcn.005c4ae0
xor ebx, ebx
xor ecx, ecx
add esp, 8
mov dword [esp + 0x14], ecx
cmp eax, ebx
je 0x5063d9
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x14]
push ecx
push 0x408f28
push eax
call edx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], ebx
cmp ecx, ebx
jne 0x506436
mov esi, dword [esi + 0x114]
push esi
push 0x4088f0
call fcn.005c5320
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp ecx, eax
je 0x50642e
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp eax, ebx
je 0x50641e
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x408f28
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [esp + 0x14]
cmp esi, ebx
je 0x50642e
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x50656a
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push edx
push ecx
call eax
test eax, eax
js 0x506564
cmp dword [esp + 0x18], ebx
jbe 0x506564
push 0x3755
lea ecx, [esp + 0x28]
call fcn.004a8f10
mov eax, dword [eax]
mov ecx, dword [ebp + 4]
mov edi, dword [sym.imp.USER32.dll_AppendMenuW]
push eax
push 0x898
push ebx
push ecx
call edi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov esi, 0x899
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5064a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 4]
push ebx
push ebx
push 0x800
push ecx
call edi
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x18], ebx
jbe 0x506564
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x14]
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x30]
push 0
push 0
push 0
push 0
mov dword [esp + 0x38], 0
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ecx
push eax
call edx
test eax, eax
js 0x506564
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
call fcn.004a8f10
push 0x40d4a4
push 0x4022f8
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 1
call fcn.004aa070
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 4]
push ecx
push esi
push 0
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
inc esi
call ebx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x506551
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x18]
jb 0x5064c2
mov ecx, dword [esp + 0x14]
xor ebx, ebx
mov dword [esp + 0x30], 0xffffffff
cmp ecx, ebx
je 0x50657e
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret