Function at 0x4757e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x525b78
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x50]
xor ebp, ebp
cmp ecx, ebp
push edi
je 0x47580d
call fcn.00501aef
jmp 0x47582b
push 8
call fcn.004fb3b1
add esp, 4
cmp eax, ebp
je 0x475826
mov dword [eax], vtable.CMenu.0
mov dword [eax + 4], ebp
jmp 0x475828
xor eax, eax
mov dword [esi + 0x50], eax
mov edi, dword [esi + 0x50]
call fcn.005157bf
movzx ecx, word [esp + 0x34]
mov eax, dword [eax + 0xc]
push ecx
push eax
call dword [sym.imp.user32.dll_LoadMenuA]
push eax
mov ecx, edi
call fcn.00501a98
test eax, eax
jne 0x475863
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
push ebx
push 0xffffffffffffffff
lea ecx, [esi + 0xa4]
push ebp
call fcn.004f9fac
cmp dword [esi + 0x60], ebp
mov ebx, dword [sym.imp.user32.dll_SendMessageA]
je 0x475899
lea ecx, [ecx]
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x1c]
push ebp
push ebp
push 0x416
dec ecx
push eax
mov dword [esi + 0x60], ecx
call ebx
cmp dword [esi + 0x60], ebp
jne 0x475880
mov edi, dword [esi + 0x60]
mov eax, dword [esi + 0x50]
dec edi
mov dword [esi + 0x60], edi
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.user32.dll_GetMenuItemCount]
mov dword [esi + 0x60], eax
mov eax, 1
mov ecx, eax
movzx edx, cx
mov ecx, dword [esi + 0x1c]
movzx eax, ax
shl edx, 0x10
or edx, eax
push edx
push ebp
push 0x420
push ecx
call ebx
mov eax, dword [esi + 0x60]
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
xor edi, edi
cmp eax, ebp
mov dword [esp + 0x24], edx
mov byte [esp + 0x1c], 4
mov byte [esp + 0x1d], 0x10
jle 0x47598f
lea esp, [esp]
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x50]
push 0x400
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x3c], ebp
call fcn.00501b87
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x1c]
push ecx
push ebp
push 0x41c
push edx
call ebx
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push 1
push 0x414
push ecx
mov dword [esp + 0x28], edi
call ebx
test eax, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
je 0x475a86
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x475983
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x60]
inc edi
cmp edi, eax
jl 0x475900
mov ecx, esi
call fcn.00475410
call fcn.005157bf
mov edi, dword [eax + 0xc]
movzx eax, word [esp + 0x38]
push 0xf1
push eax
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, ebp
je 0x475aa0
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, ebp
je 0x475aa0
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov edi, eax
cmp edi, ebp
je 0x475aa0
xor ebx, ebx
cmp word [edi + 6], bp
jbe 0x475a0b
lea ebp, [edi + 8]
movzx eax, word [ebp]
test eax, eax
je 0x4759ff
push eax
mov eax, dword [esi + 0xac]
lea ecx, [esi + 0xa4]
push eax
call fcn.004f9b56
movzx ecx, word [edi + 6]
inc ebx
add ebp, 2
cmp ebx, ecx
jl 0x4759e4
push 0xf
mov ebp, 1
call dword [sym.imp.user32.dll_GetSysColor]
movzx edx, word [edi + 2]
push 0
mov ebx, eax
mov eax, dword [esp + 0x3c]
push ebx
push edx
push eax
lea ecx, [esi + 0x8c]
call fcn.00473be0
test eax, eax
je 0x475a6d
movzx ecx, word [edi + 2]
mov edx, dword [esp + 0x38]
push ebp
push ebx
push ecx
push edx
lea ecx, [esi + 0x94]
call fcn.00473be0
test eax, eax
je 0x475a6d
movzx eax, word [edi + 2]
mov ecx, dword [esp + 0x38]
push 2
push ebx
push eax
push ecx
lea ecx, [esi + 0x9c]
call fcn.00473be0
test eax, eax
jne 0x475a6f
xor ebp, ebp
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x475aa0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4