Function at 0x5359e0
Capabilities:
Extract resource via kernel32 functions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x67f864]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x58], 0
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x30], edi
mov dword [esp + 0x10], 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
je 0x535a27
mov dword [esp + 0x24], 0xa
mov eax, dword [edi + 0x20]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [edi + 0x20]
push 0
push ecx
push edx
push eax
call fcn.0057ee1a
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00534870
mov esi, eax
cmp esi, 0xffffffff
je 0x5363bc
mov eax, dword [0x690ca0]
lea edx, [esp + 0x38]
call fcn.00404050
lea edx, [esi + 1]
lea esi, [esp + 0x24]
mov dword [esp + 0x1c], edx
call fcn.004992e0
mov ebx, eax
xor esi, esi
cmp ebx, esi
mov dword [esp + 0x18], ebx
je 0x536320
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0056eb4e
mov edx, dword [ebx + 0xe0]
mov esi, eax
mov eax, dword [0x691938]
cmp edx, dword [eax + 0x5c0]
mov dword [esp + 0x2c], esi
jge 0x535abf
xor edi, edi
mov dword [esp + 0x20], edi
jmp 0x535aee
lea edx, [esp + 0xc]
call fcn.00404050
mov eax, dword [ebx + 0xc]
imul eax, eax, 0x84
mov ecx, dword [eax + 0x62d944]
push ebx
call ecx
mov edi, eax
mov eax, dword [esp + 0x10]
add esp, 4
xor edx, edx
mov dword [esp + 0x20], edi
call fcn.00404050
call dword [sym.imp.USER32.dll_CreatePopupMenu]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x535b00
mov dword [esp + 0x10], eax
mov eax, dword [0x691938]
lea edx, [esp + 0xc]
call fcn.00404050
push 1
push 0x28
push 1
push 0
lea edx, [esp + 0x50]
mov ecx, ebx
call fcn.0045b1a0
mov eax, dword [esp + 0x1c]
add esp, 0x10
xor edx, edx
call fcn.00404050
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_AppendMenuW]
lea edx, [esp + 0x40]
push edx
push 0xffffffffffffffff
push 3
push eax
call ebx
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0x800
push ecx
call ebx
cmp dword [esp + 0x10], 0
je 0x53631e
mov edx, dword [esp + 0x1c]
push 0x50d
mov ecx, esi
mov dword [esi + 0xf8], edx
call fcn.005720b1
mov eax, dword [eax + 0x20]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x20]
lea edx, [ebp + 0xc]
push edx
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [0x6952fc]
mov edx, dword [0x6923b4]
mov dword [esp + 0x3c], eax
mov eax, edi
and eax, 0x10
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], eax
je 0x535c3e
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [esp + 0x10], eax
xor edi, edi
mov edi, edi
push 0x28
lea ecx, [esp + 0x44]
push ecx
lea edx, [edi + 0xba]
push edx
push 1
xor esi, esi
call fcn.0051a1e0
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp dword [eax + 0x24], edi
jne 0x535bf8
mov esi, 8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x40]
push ecx
lea edx, [edi + 0x3e8]
push edx
push esi
push eax
call ebx
add edi, 1
cmp edi, 4
jl 0x535bd0
push 0x28
lea ecx, [esp + 0x44]
push ecx
push 0x11
push 2
call fcn.0051a1e0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea edx, [esp + 0x40]
push edx
push eax
push 0x10
push ecx
call ebx
mov edi, dword [esp + 0x20]
mov esi, edi
shr esi, 3
mov eax, edi
shr eax, 2
and esi, 1
and eax, 1
test esi, esi
mov dword [esp + 0x1c], eax
jne 0x535c5e
test eax, eax
je 0x535e1d
call dword [sym.imp.USER32.dll_CreatePopupMenu]
test esi, esi
mov dword [esp + 0x10], eax
je 0x535cb8
xor edi, edi
mov edi, edi
push 0x28
lea edx, [esp + 0x44]
push edx
lea eax, [edi + 0xb6]
push eax
push 1
xor ebx, ebx
call fcn.0051a1e0
mov ecx, dword [esp + 0x28]
add esp, 0x10
cmp dword [ecx + 0x1c], edi
jne 0x535c98
mov ebx, 8
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x40]
push edx
lea eax, [edi + 0x3ec]
push eax
push ebx
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
add edi, 1
cmp edi, 4
jl 0x535c70
cmp dword [esp + 0x1c], 0
je 0x535d98
test esi, esi
je 0x535cdb
mov edx, dword [esp + 0x10]
push 0
push 0
push 0x800
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
mov dword [esp + 0xc], 0x3f0
mov esi, 2
mov edi, edi
cmp dword [0x6928c0], 0
mov dword [esp + 0x1c], 0
jne 0x535d34
push 0xa
push 0x80
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
add eax, 2
mov dword [0x690b40], eax
mov dword [0x6928c0], 1
jmp 0x535d39
mov eax, dword [0x690b40]
movzx edx, word [eax + 4]
lea ecx, [esi + 0xb3]
movzx edi, cx
add edi, edx
call fcn.0057ee1a
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x44]
push 0x28
lea ecx, [esp + 0x44]
push ecx
push edi
push edx
call ebx
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x20], esi
mov eax, 8
je 0x535d70
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x40]
push ecx
push edi
push eax
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
add edi, 1
sub esi, 1
mov dword [esp + 0xc], edi
jns 0x535cf0
jmp 0x535d9e
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
cmp dword [0x6928c0], 0
jne 0x535dda
push 0xa
push 0x80
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
add eax, 2
mov dword [0x690b40], eax
mov dword [0x6928c0], 1
jmp 0x535ddf
mov eax, dword [0x690b40]
movzx esi, word [eax + 8]
add esi, 0xd
call fcn.0057ee1a
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x44]
push 0x28
lea ecx, [esp + 0x44]
push ecx
push esi
push edx
call ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
push ecx
push 0x10
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov ebx, dword [sym.imp.USER32.dll_AppendMenuW]
mov edi, dword [esp + 0x20]
mov eax, edi
and eax, 2
mov dword [esp + 0x1c], eax
je 0x535f73
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov esi, dword [sym.imp.USER32.dll_InsertMenuW]
mov ebx, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x2c]
mov dword [0x6923b4], 1
mov dword [0x6952fc], ecx
mov edi, 0x805b
push 0
push edi
push 0x100
push 0xffffffffffffffff
push ebx
call esi
add edi, 1
cmp edi, 0x806a
jle 0x535e56
push 0
push 0
push 0x800
push ebx
call dword [sym.imp.USER32.dll_AppendMenuW]
cmp dword [0x6928c0], 0
jne 0x535eba
push 0xa
push 0x80
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
add eax, 2
mov dword [0x690b40], eax
mov dword [0x6928c0], 1
jmp 0x535ebf
mov eax, dword [0x690b40]
movzx esi, word [eax + 4]
add esi, 0xcd
call fcn.0057ee1a
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x44]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x28
lea edx, [esp + 0x44]
push edx
push esi
push eax
call edi
lea ecx, [esp + 0x40]
push ecx
push 0x806b
push 0
push ebx
call dword [sym.imp.USER32.dll_AppendMenuW]
cmp dword [0x6928c0], 0
jne 0x535f34
push 0xa
push 0x80
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
add eax, 2
mov dword [0x690b40], eax
mov dword [0x6928c0], 1
jmp 0x535f39
mov eax, dword [0x690b40]
movzx esi, word [eax + 8]
add esi, 0x13
call fcn.0057ee1a
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x44]
push 0x28
lea edx, [esp + 0x44]
push edx
push esi
push eax
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x40]
push ecx
push ebx
push 0x10
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov ebx, dword [sym.imp.USER32.dll_AppendMenuW]
mov edi, dword [esp + 0x20]
and edi, 1
mov dword [esp + 0xc], edi
je 0x536002
cmp dword [0x6928c0], 0
jne 0x535fbc
push 0xa
push 0x80
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
add eax, 2
mov dword [0x690b40], eax
mov dword [0x6928c0], 1
jmp 0x535fc1
mov eax, dword [0x690b40]
movzx edi, word [eax + 4]
add edi, 0x50
call fcn.0057ee1a
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x44]
push 0x28
lea ecx, [esp + 0x44]
push ecx
push edi
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x14]
neg eax
lea ecx, [esp + 0x40]
push ecx
sbb eax, eax
push 0x3f3
and eax, 8
push eax
push edx
call ebx
cmp dword [0x6928c0], 0
jne 0x53603e
push 0xa
push 0x80
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
add eax, 2
mov dword [0x690b40], eax
mov dword [0x6928c0], 1
jmp 0x536043
mov eax, dword [0x690b40]
movzx edi, word [eax + 4]
add edi, 0xaf
call fcn.0057ee1a
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x44]
push 0x28
lea ecx, [esp + 0x44]
push ecx
push edi
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
push 0x3f4
push 0
push esi
call ebx
push 0
push 0
push 0x800
push esi
call ebx
cmp dword [0x6928c0], 0
jne 0x5360c2
push 0xa
push 0x80
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
add eax, 2
mov dword [0x690b40], eax
mov dword [0x6928c0], 1
jmp 0x5360c7
mov eax, dword [0x690b40]
movzx esi, word [eax + 4]
add esi, 0xd5
call fcn.0057ee1a
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x44]
push 0x28
lea ecx, [esp + 0x44]
push ecx
push esi
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
push 0x3f5
push 0
push ecx
call ebx
cmp dword [0x6928c0], 0
jne 0x53613a
push 0xa
push 0x80
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
add eax, 2
mov dword [0x690b40], eax
mov dword [0x6928c0], 1
jmp 0x53613f
mov eax, dword [0x690b40]
movzx edi, word [eax + 4]
add edi, 0xd7
call fcn.0057ee1a
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x44]
push 0x28
lea edx, [esp + 0x44]
push edx
push edi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x40]
push ecx
push 0x3f6
push 0
push esi
call ebx
call fcn.00589b56
test eax, eax
je 0x53618a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x53618c
xor eax, eax
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0
push ecx
push 0
push edx
push eax
push 0x102
push esi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push esi
mov edi, eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5361f2
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
lea eax, [edi - 0x805b]
cmp eax, 0xf
mov dword [0x6923b4], ecx
mov dword [0x6952fc], edx
ja 0x5361f2
mov eax, dword [eax*4 + 0x6860e0]
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x2c], eax
je 0x5361f6
mov dword [esi + 0x2c], eax
call fcn.004996d0
jmp 0x5361f6
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x24], 0
je 0x536215
lea eax, [edi - 0x3e8]
cmp eax, 3
ja 0x536215
cmp eax, dword [esi + 0x24]
je 0x536215
mov dword [esi + 0x24], eax
call fcn.004996d0
mov ebx, dword [esp + 0x20]
test ebx, 8
je 0x536239
lea eax, [edi - 0x3ec]
cmp eax, 3
ja 0x536239
cmp eax, dword [esi + 0x1c]
je 0x536239
mov dword [esi + 0x1c], eax
call fcn.004996d0
test ebx, 4
je 0x536259
lea eax, [edi - 0x3f0]
cmp eax, 2
ja 0x536259
cmp eax, dword [esi + 0x20]
je 0x536259
mov dword [esi + 0x20], eax
call fcn.004996d0
cmp edi, 0x806b
jne 0x536289
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0x20]
push eax
lea edi, [esp + 0x10]
call fcn.0050ce90
add esp, 4
test eax, eax
je 0x5362ec
mov edx, dword [esp + 0xc]
mov dword [esi + 0x2c], edx
jmp 0x5362ec
cmp dword [esp + 0xc], 0
je 0x5362a5
cmp edi, 0x3f3
jne 0x5362a5
xor eax, eax
cmp dword [esi + 4], eax
sete al
mov dword [esi + 4], eax
jmp 0x5362ec
cmp edi, 0x3f4
jne 0x5362b8
push esi
call fcn.00499620
add esp, 4
jmp 0x5362ec
cmp edi, 0x3f5
jne 0x5362db
mov ecx, dword [0x692840]
push 0
push 0xe106
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x5362ec
cmp edi, 0x3f6
jne 0x5362ec
mov esi, dword [esp + 0x2c]
call fcn.00537c00
mov esi, dword [esp + 0x2c]
push 0x50d
mov ecx, esi
mov dword [esi + 0xf8], 0
call fcn.005720b1
mov edx, dword [eax + 0x20]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor esi, esi
mov ecx, dword [0x690c9c]
mov eax, dword [esp + 0x38]
cmp ecx, eax
je 0x5363b2
cmp eax, esi
mov edx, ecx
mov dword [0x690c9c], eax
jne 0x536345
mov dword [0x690ca8], esi
jmp 0x536351
mov ecx, dword [eax + 0x568]
mov dword [0x690ca8], ecx
cmp dword [0x690ca0], eax
jne 0x536367
cmp eax, esi
mov dword [0x690ca4], 1
jne 0x536371
cmp eax, esi
mov dword [0x690ca4], esi
je 0x536386
mov eax, dword [eax + 0x18c]
mov ecx, dword [0x691ca8]
mov dword [0x691ca8], eax
mov eax, ecx
jmp 0x536391
mov eax, dword [0x691ca8]
mov dword [0x691ca8], esi
cmp edx, esi
je 0x5363bc
mov dword [edx + 0x18c], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.005ce60a
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x5363bc
mov dword [0x690ca4], esi
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005ce60a
mov esp, ebp
pop ebp
ret 0xc