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

Disassembly:
push 0xffffffffffffffff
push 0x866298
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x228]
lea ebx, [edi + 0x224]
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], ebx
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
jne 0x506a23
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
mov ecx, ebx
call fcn.007d8636
jmp 0x506a41
mov esi, dword [sym.imp.USER32.dll_RemoveMenu]
lea esp, [esp]
mov ecx, dword [ebx + 4]
push 0x400
push 0
push ecx
call esi
test eax, eax
jne 0x506a30
cmp dword [edi + 0x2e8], 2
jne 0x5073c5
mov eax, dword [edi + 0x2bc]
mov ebx, 0x10cc
mov dword [esp + 0x18], ebx
cmp eax, 1
jne 0x507176
xor esi, esi
cmp dword [edi + 0x4a20], eax
jbe 0x506daa
mov ebp, dword [edi + 0x4a18]
mov dword [esp + 0x30], eax
cmp ebp, esi
je 0x506daa
jmp 0x506a90
xor ebx, ebx
cmp dword [esp + 0x18], 0x10cc
mov dword [esp + 0x14], ebx
je 0x506ab4
mov edx, dword [esp + 0x24]
cmp ebp, dword [edx + 0x4a18]
jne 0x506ab4
mov dword [esp + 0x14], 0x20
mov eax, dword [esp + 0x30]
cmp eax, 0x1e
jne 0x506ac4
or dword [esp + 0x14], 0x20
xor eax, eax
inc eax
mov dword [esp + 0x30], eax
xor eax, eax
cmp ebp, ebx
setne al
cmp eax, ebx
je 0x506dcf
mov esi, ebp
mov eax, dword [esi + 8]
mov ebp, dword [ebp]
sub eax, 0x10
push eax
call fcn.004a9b50
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
lea edi, [eax + 0x10]
mov eax, dword [esi + 0x18]
mov esi, dword [esi + 0x1c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], esi
sub eax, ecx
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x4c]
sbb esi, edx
push ecx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x78], esi
call fcn.005c5a60
push eax
lea edx, [esp + 0x5c]
push 0x40d540
push edx
mov byte [esp + 0x9c], 1
call fcn.004b1a10
push 0x40d53c
push eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0xa8], 2
call fcn.004af3d0
add esp, 0x24
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x84], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x506b89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x84], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x506bb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push edi
mov dword [esp + 0x30], edi
call fcn.004a9b50
add eax, 0x10
add esp, 4
lea edi, [esp + 0x20]
mov dword [esi], eax
call fcn.0055f560
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x1108]
xor ecx, ecx
cmp eax, ebx
setne cl
mov byte [esp + 0x84], 6
cmp ecx, ebx
je 0x506dd9
push ebx
lea edx, [esp + 0x3c]
lea ecx, [eax + 8]
push edx
call fcn.0055f980
mov ecx, dword [eax]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x506dcf
mov eax, dword [esp + 0x1c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x506c46
cmp dx, bx
je 0x506c42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x506c46
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x506c20
xor eax, eax
jmp 0x506c4b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x38]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x506c70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x506c79
or dword [esp + 0x14], 8
push 0x40d4a4
push 0x4022f8
lea ecx, [esp + 0x24]
call fcn.004aa070
push 9
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.004c9780
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x9c], 7
call fcn.004ac680
mov eax, dword [eax]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 4]
add esp, 0x18
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov eax, dword [esp + 0x48]
inc esi
add eax, 0xfffffff0
mov dword [esp + 0x18], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x506cf8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x84], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x506d20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x84], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x506d48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x84], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x506d70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x84], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x506d98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
jne 0x506a90
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
xor esi, esi
mov ecx, edi
call fcn.00502a70
cmp dword [edi + 0x2e8], 2
jne 0x506dde
lea ecx, [edi + 0x460]
call fcn.00554ae0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
jmp 0x506de6
push 0x80004005
call fcn.004a8210
call fcn.007c8676
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov eax, dword [edi + 0x264]
mov ecx, dword [eax]
push esi
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x264]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
cmp eax, 1
jbe 0x507090
mov eax, dword [edi + 0x264]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
xor ebp, ebp
mov dword [esp + 0x1c], esi
call edx
test eax, eax
je 0x507090
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x14], esi
mov eax, dword [edi + 0x264]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x40]
push edx
push ebp
push eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x94], 8
call eax
test eax, eax
jns 0x506e80
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x88], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x507074
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.005c5a60
push eax
lea ecx, [esp + 0x34]
push 0x40d540
push ecx
mov byte [esp + 0x98], 9
call fcn.004b1a10
push 0x40d53c
push eax
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0xa4], 0xa
call fcn.004af3d0
add esp, 0x20
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x84], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x506eea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x84], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x506f12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.004a8f10
push 0x40d4a4
push 0x4022f8
lea ecx, [esp + 0x24]
mov byte [esp + 0x8c], 0xe
call fcn.004aa070
push 0x40d538
push 0x402314
lea ecx, [esp + 0x24]
call fcn.004aa070
xor esi, esi
cmp ebp, dword [esp + 0x48]
jne 0x506f5b
mov esi, 8
cmp dword [esp + 0x18], 0x1e
jne 0x506f6d
or esi, 0x20
mov dword [esp + 0x18], 0
cmp ebx, 0x10cc
je 0x506f85
test ebp, ebp
jne 0x506f85
cmp dword [edi + 0x4a20], 1
jbe 0x506f85
or esi, 0x20
push 9
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.004c9780
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0x9c], 0xf
call fcn.004ac680
mov eax, dword [eax]
add esp, 0x18
push eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
push ebx
push esi
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x506fe4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x84], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50700c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x84], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x507034
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x84], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50705c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x88], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor esi, esi
mov eax, dword [edi + 0x264]
mov edx, dword [eax]
inc dword [esp + 0x18]
push eax
mov eax, dword [edx + 0xc]
inc ebp
inc ebx
call eax
cmp ebp, eax
jb 0x506e31
lea ecx, [edi + 0xf18]
call fcn.0054d500
cmp eax, 1
jle 0x5073c5
mov esi, dword [edi + 0x1108]
test esi, esi
je 0x5073c5
mov ebp, dword [sym.imp.USER32.dll_AppendMenuW]
add edi, 0x1104
mov dword [esp + 0x28], edi
mov ecx, dword [esp + 0x28]
xor edi, edi
call fcn.0055ef70
cmp esi, eax
jne 0x5070d6
mov edi, 8
cmp ebx, 0x10cc
je 0x5070fd
mov ecx, dword [esp + 0x24]
cmp esi, dword [ecx + 0x1108]
jne 0x5070fd
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
push 0
push 0
push 0x800
push eax
call ebp
push 0
lea edx, [esp + 0x20]
lea ecx, [esi + 8]
mov esi, dword [esi]
push edx
call fcn.0055f980
push 0x40d4a4
push 0x4022f8
lea ecx, [esp + 0x24]
mov dword [esp + 0x8c], 0x10
call fcn.004aa070
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
push eax
push ebx
push edi
push edx
call ebp
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
inc ebx
mov dword [esp + 0x84], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x507169
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x5070c2
jmp 0x5073c5
cmp eax, 2
jne 0x507367
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0x144]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x3c]
push edx
lea edx, [esp + 0x44]
xor edi, edi
mov dword [esp + 0x20], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x54]
call eax
mov eax, dword [esi + 0x144]
mov ecx, dword [eax]
lea edx, [esp + 0x68]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esi + 0x144]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x34], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x6c]
call eax
mov eax, dword [esi + 0x144]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
mov ebx, dword [sym.imp.USER32.dll_AppendMenuW]
mov edi, 1
cmp dword [esp + 0x14], edi
jb 0x5072aa
xor ebp, ebp
cmp edi, dword [esp + 0x68]
jne 0x507213
mov ebp, 8
test byte [esp + 0x24], 4
je 0x50721d
or ebp, 3
call fcn.007cff5d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x506dcf
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push edi
lea ecx, [esp + 0x24]
push 0x8100
push ecx
mov dword [esp + 0x90], 0x11
call fcn.004b1ce0
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
add esp, 0xc
push esi
push edx
push ebp
push ecx
call ebx
inc dword [esp + 0x18]
lea eax, [esi - 0x10]
mov dword [esp + 0x84], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x50729f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
cmp edi, dword [esp + 0x14]
jbe 0x507206
mov ebp, 1
cmp dword [esp + 0x30], ebp
jb 0x5073c5
xor edi, edi
cmp ebp, dword [esp + 0x6c]
jne 0x5072c6
mov edi, 8
test byte [esp + 0x24], 2
je 0x5072d0
or edi, 3
cmp ebp, 1
jne 0x5072d8
or edi, 0x20
call fcn.007cff5d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x506dcf
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push ebp
lea ecx, [esp + 0x24]
push 0x8136
push ecx
mov dword [esp + 0x90], 0x12
call fcn.004b1ce0
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
add esp, 0xc
push esi
push edx
push edi
push ecx
call ebx
inc dword [esp + 0x18]
lea eax, [esi - 0x10]
mov dword [esp + 0x84], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x50735a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebp
cmp ebp, dword [esp + 0x30]
jbe 0x5072b9
jmp 0x5073c5
cmp eax, 3
jne 0x5073c5
call fcn.007c9a2f
mov eax, dword [eax + 4]
cmp dword [eax + 0x9b8], 1
jne 0x5073c5
call fcn.007c9a2f
mov edi, dword [eax + 4]
mov esi, dword [edi + 0x9f0]
test esi, esi
je 0x5073c5
mov ebp, dword [sym.imp.USER32.dll_AppendMenuW]
mov ebx, dword [esp + 0x2c]
mov eax, esi
mov ecx, dword [eax + 0x10]
mov esi, dword [esi]
xor edx, edx
cmp ecx, dword [edi + 0x9ec]
jne 0x5073af
mov edx, 8
mov eax, dword [eax + 8]
push eax
add ecx, 0x10cc
push ecx
mov ecx, dword [ebx + 4]
push edx
push ecx
call ebp
test esi, esi
jne 0x507399
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0080262b
add esp, 0x74
ret