Function at 0x40e970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x14c
push ebx
push ebp
mov ebp, dword [esp + 0x158]
push esi
mov esi, eax
movzx eax, word [esp + 0x160]
cmp eax, 0xbb8
push edi
jle 0x40eb4d
cmp eax, 0xbb9
jle 0x40e9b3
push 0
push 0x104
lea ecx, [esp + 0x58]
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_GetMenuStringA]
jmp 0x40e9b8
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x50]
mov edi, 0x4688ec
call fcn.00403a80
test al, al
jne case.default.0x40ebd4
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
lea eax, [esp + 0x50]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e9e0
sub eax, edx
push eax
lea edx, [esp + 0x54]
push edx
mov ecx, 0x4688ec
call fcn.00403770
mov ecx, 0x45ba10
mov edi, 0x4688ec
call fcn.00403a80
test al, al
jne 0x40ea9a
push 1
push 0x4687f4
push 0x4687f0
push edi
mov eax, str.skin_
lea edi, [esp + 0x44]
call fcn.0040bad0
add esp, 4
mov edi, str..png
lea esi, [esp + 0x24]
call fcn.0040bb50
push eax
call fcn.00413770
mov ebx, 0x10
add esp, 0x10
mov esi, eax
cmp dword [esp + 0x30], ebx
jb 0x40ea5f
mov eax, dword [esp + 0x1c]
push eax
call fcn.00427d3a
add esp, 4
xor edi, edi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], edi
mov byte [esp + 0x1c], 0
cmp dword [esp + 0x4c], ebx
jb 0x40ea85
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00427d3a
add esp, 4
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], edi
mov byte [esp + 0x38], 0
cmp esi, edi
jne 0x40eae7
push 0x45c298
push 0x66
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x4687f4
lea edx, [esp + 0x14]
push 0x4687f0
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
call fcn.004139f0
add esp, 0xc
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x4687f4]
imul eax, dword [0x4687f0]
mov ecx, esi
call fcn.0040e7d0
mov eax, dword [0x4687f4]
mov ecx, dword [0x4687f0]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x12
push eax
push ecx
push 0
push 0
push 0
push ebp
call edi
push esi
push ebp
call fcn.0040e850
add esp, 8
test byte [0x4687cc], 4
je 0x40eb3a
push 0x13
push 0
push 0
push 0
push 0
push 1
push ebp
call edi
call fcn.0040fa10
push esi
call fcn.00427d2f
add esp, 4
jmp case.default.0x40ebd4
cmp eax, 0x7d0
jle 0x40ebc2
push 0
push 0x104
lea edx, [esp + 0x58]
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_GetMenuStringA]
lea ecx, [esp + 0x50]
mov edi, 0x4688b4
call fcn.00403a80
test al, al
jne case.default.0x40ebd4
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
lea eax, [esp + 0x50]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40eb90
sub eax, edx
push eax
lea eax, [esp + 0x54]
push eax
mov ecx, 0x4688b4
call fcn.00403770
push 0x4687f8
mov eax, 0x4688b4
call fcn.0040cdc0
call fcn.0040fa10
jmp case.default.0x40ebd4
add eax, 0xfffffc17
mov edi, 8
cmp eax, edi
ja case.default.0x40ebd4
jmp dword [eax*4 + 0x40ee20]
test byte [0x4687cc], 1
je 0x40ebfd
dec dword [0x4687cc]
push 0
push 0x3ea
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp case.default.0x40ebd4
inc dword [0x4687cc]
push edi
push 0x3ea
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp case.default.0x40ebd4
mov eax, dword [0x4687cc]
test al, 2
je 0x40ec4c
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
sub eax, 2
push ebp
mov dword [0x4687cc], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0x3eb
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp case.default.0x40ebd4
mov edi, dword [sym.imp.USER32.dll_CheckMenuItem]
test al, 4
je 0x40ec68
push 0
push 0x3ec
sub eax, 4
push esi
mov dword [0x4687cc], eax
call edi
add dword [0x4687cc], 2
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebp
call dword [sym.imp.USER32.dll_SetWindowPos]
push 8
push 0x3eb
push esi
call edi
jmp case.default.0x40ebd4
mov eax, dword [0x4687cc]
test al, 4
je 0x40ecc8
push 3
push 0
push 0
push 0
push 0
push 0
sub eax, 4
push ebp
mov dword [0x4687cc], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0x3ec
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp case.default.0x40ebd4
mov edi, dword [sym.imp.USER32.dll_CheckMenuItem]
test al, 2
je 0x40ece4
push 0
push 0x3eb
sub eax, 2
push esi
mov dword [0x4687cc], eax
call edi
add dword [0x4687cc], 4
push 3
push 0
push 0
push 0
push 0
push 1
push ebp
call dword [sym.imp.USER32.dll_SetWindowPos]
push 8
push 0x3ec
push esi
call edi
jmp case.default.0x40ebd4
test byte [0x4687cc], 8
je 0x40ed2f
sub dword [0x4687cc], edi
push 0
push 0x3ed
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp case.default.0x40ebd4
add dword [0x4687cc], edi
push edi
push 0x3ed
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp case.default.0x40ebd4
mov ebx, 0x10
test byte [0x4687cc], bl
je 0x40ed7a
push 0x468930
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
sub dword [0x4687cc], ebx
push 0
push 0x3ee
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp case.default.0x40ebd4
push ebp
call fcn.0040e740
add dword [0x4687cc], ebx
add esp, 4
push edi
push 0x3ee
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp case.default.0x40ebd4
mov eax, 0x20
test byte [0x4687cc], al
je 0x40edbb
sub dword [0x4687cc], eax
push 0
push 0x3ef
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp case.default.0x40ebd4
add dword [0x4687cc], eax
push edi
push 0x3ef
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp case.default.0x40ebd4
push ebp
call fcn.00401330
add esp, 4
jmp case.default.0x40ebd4
push ebp
call fcn.00403340
add esp, 4
jmp case.default.0x40ebd4
test byte [0x4687cc], 0x10
je 0x40edfc
push 0x468930
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret