Function at 0x40b110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4891c0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x280
mov eax, dword [0x4b701c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x264], edi
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x25c], esi
cmp eax, 1
je 0x40b17e
cmp eax, 0x110
jne 0x40b6fc
cmp dword [edi + 4], 0
je 0x40b6fc
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x8000000
je 0x40b19f
mov dword [edi + 0x10], 1
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
mov dword [ebp - 0x254], ecx
cmp dword [ecx + 4], 0
jne 0x40b6f9
push dword [ebp - 0x264]
test eax, eax
mov dword [ecx + 0x28], eax
mov edx, 0x80000000
mov dword [ecx + 0x2c], esi
lea eax, [ecx + 0x20]
mov edi, 0x88000000
cmovne edi, edx
mov esi, 0x80800a0
push eax
mov edx, 0x8080080
push 0x4b7bd0
cmovne esi, edx
call fcn.00409fe0
add esp, 8
movzx eax, ax
push eax
push 0
push esi
mov esi, dword [ebp - 0x254]
mov ecx, esi
push edi
push 0
push 0
push dword [ebp - 0x25c]
call fcn.00409e90
xor eax, eax
add esi, 0x44
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], esi
nop
cmp dword [esi - 0x10], 0
jne 0x40b692
mov edi, dword [0x4bc9f0]
test edi, edi
jne 0x40b38e
push 0x208
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.00455ce0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40b38e
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x40b280
xor edi, edi
jmp 0x40b38e
xor eax, eax
mov dword [ebp - 0x238], 0
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x228], 0
lea edx, [eax + 2]
mov dword [ebp - 0x224], 7
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b2b0
sub eax, edx
lea ecx, [ebp - 0x238]
sar eax, 1
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00408440
push 1
push 0x4a5b00
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 0
call fcn.00404760
push 0xc
push 0x4a5ae4
lea ecx, [ebp - 0x238]
call fcn.00404760
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push 2
cmovae eax, dword [ebp - 0x238]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 4], 0xffffffff
mov edi, eax
mov edx, dword [ebp - 0x224]
mov dword [0x4bc9f0], edi
cmp edx, 8
jb 0x40b371
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b361
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b99b
push edx
push ecx
call fcn.00453c42
mov edi, dword [0x4bc9f0]
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
cmp dword [ebp - 0x260], 0
mov ecx, 0x148
push 0x4a4c78
mov eax, 0x196
cmove eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x258], eax
test eax, eax
je 0x40b5c9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x40b5c9
push dword [ebp - 0x258]
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x258], eax
test eax, eax
je 0x40b5c9
push dword [ebp - 0x24c]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40b5bd
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40b5b6
push dword [ebp - 0x24c]
push dword [ebp - 0x258]
push eax
call fcn.00455760
add esp, 0xc
mov dword [ebp - 0x250], 0
lea eax, [ebp - 0x250]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40b5af
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x268], eax
mov eax, dword [0x4bc9e8]
test al, 1
jne 0x40b4bc
push 0
or eax, 1
mov dword [0x4bc9c4], 0
push 0x4bc9c8
mov dword [0x4bc9e8], eax
mov dword [0x4bc9e0], 0
mov dword [0x4bc9e4], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x40b4af
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40b4aa
movzx eax, ax
or eax, 0x80070000
mov dword [0x4bc9e4], eax
push 0x48edc5
call fcn.00453e8c
add esp, 4
cmp dword [0x4bc9e4], 0
jne 0x40b5a3
push 0x4bc9c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4bc9c4], 0
jne 0x40b52f
lea eax, [ebp - 0x274]
mov dword [ebp - 0x248], 1
push eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x244], 0
push eax
push 0x4bc9c4
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
je 0x40b52f
push 0x4bc9c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40b5a3
push 0x4bc9c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x24c]
mov dword [ebp - method.Gdiplus::Bitmap.virtual_0], vtable.Gdiplus::Bitmap.0
push eax
push dword [ebp - 0x268]
mov dword [ebp - 0x24c], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x284], 0
test eax, eax
je 0x40b57e
push ecx
jmp 0x40b593
lea eax, [ebp - 0x28c]
push eax
lea ecx, [esi - 0x14]
call fcn.00420921
push dword [ebp - 0x288]
mov dword [ebp - method.Gdiplus::Bitmap.virtual_0], vtable.Gdiplus::Image.0
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
mov eax, dword [ebp - 0x250]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi - 0x10], 0
je 0x40b68c
xor ecx, ecx
mov dword [ebp - 0x24c], ecx
cmp dword [esi - 8], ecx
jle 0x40b68c
mov edx, dword [esi - 4]
nop word [eax + eax]
mov dword [ebp - 0x250], 0
test edx, edx
jle 0x40b67c
nop
mov eax, dword [esi + 4]
imul eax, ecx
mov ecx, dword [esi]
imul ecx, dword [ebp - 0x250]
cdq
and edx, 7
lea edi, [edx + eax]
mov eax, 0x80808081
sar edi, 3
add edi, ecx
add edi, dword [esi - 0xc]
movzx esi, byte [edi + 3]
movzx ecx, byte [edi]
imul ecx, esi
mul ecx
movzx ecx, byte [edi + 1]
mov eax, 0x80808081
imul ecx, esi
shr edx, 7
mov byte [edi], dl
mul ecx
movzx ecx, byte [edi + 2]
mov eax, 0x80808081
imul ecx, esi
mov esi, dword [ebp - 0x25c]
shr edx, 7
mov byte [edi + 1], dl
mul ecx
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x24c]
inc eax
shr edx, 7
mov byte [edi + 2], dl
mov edx, dword [esi - 4]
mov dword [ebp - 0x250], eax
cmp eax, edx
jl 0x40b600
inc ecx
mov dword [ebp - 0x24c], ecx
cmp ecx, dword [esi - 8]
jl 0x40b5f0
mov eax, dword [ebp - 0x260]
inc eax
add esi, 0x34
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], esi
cmp eax, 2
jl 0x40b220
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f84
push 0
call esi
mov edi, dword [ebp - 0x254]
push 0x7f85
push 0
mov dword [edi + 0x98], eax
call esi
push 0x7f82
push 0
mov dword [edi + 0x9c], eax
call esi
push 0x7f83
push 0
mov dword [edi + 0xa0], eax
call esi
mov dword [edi + 0xa4], eax
mov edi, dword [ebp - 0x264]
mov eax, dword [ebx + 0xc]
cmp eax, 0xf
jne 0x40b72b
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40b96d
cmp dword [edi + 0x10], 0
je 0x40b71e
push 1
call fcn.0042125a
jmp 0x40b96d
push dword [edi + 0xc]
call fcn.0042125a
jmp 0x40b96d
cmp eax, 0x47
jne 0x40b91b
mov eax, dword [edi + 4]
mov dword [ebp - 0x254], eax
test eax, eax
je 0x40b90d
push dword [eax + 4]
add eax, 4
mov dword [ebp - 0x24c], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b90d
mov esi, dword [ebx + 0x14]
push dword [esi]
call dword [sym.imp.USER32.dll_IsIconic]
push dword [esi]
mov edi, eax
call dword [sym.imp.USER32.dll_IsZoomed]
mov ecx, dword [esi + 0x18]
mov edx, eax
mov eax, ecx
and eax, 0x40
mov dword [ebp - 0x264], eax
mov eax, ecx
and eax, 2
mov dword [ebp - 0x25c], eax
mov eax, ecx
and eax, 1
mov dword [ebp - 0x258], eax
test edi, edi
jne 0x40b8a7
test cl, cl
js 0x40b8a7
test edx, edx
jne 0x40b8a7
mov esi, dword [ebp - 0x254]
lea eax, [ebp - 0x248]
push eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x248], xmm0
mov dword [esi + 0x24], 1
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_GetWindowRect]
movups xmm0, xmmword [ebp - 0x248]
mov ecx, dword [esi + 0xb0]
movups xmmword [ebp - 0x27c], xmm0
mov edx, dword [ebp - 0x278]
mov eax, dword [ebp - 0x274]
add eax, dword [esi + 0xb4]
sub edx, dword [esi + 0xa8]
add ecx, dword [ebp - 0x270]
movd edi, xmm0
mov dword [ebp - 0x278], edx
mov dword [ebp - 0x254], eax
sub edi, dword [esi + 0xac]
cmp dword [ebp - 0x264], 0
mov esi, dword [ebp - 0x24c]
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x270], ecx
je 0x40b865
push 0x54
lea eax, [ebp - 0x27c]
push eax
push ecx
mov ecx, esi
call fcn.00418a50
mov edx, dword [ebp - 0x278]
mov ecx, dword [ebp - 0x268]
xor eax, eax
cmp dword [ebp - 0x25c], eax
setne al
sub ecx, edx
lea eax, [eax*2 + 0x14]
or eax, dword [ebp - 0x258]
push eax
mov eax, dword [ebp - 0x254]
push ecx
sub eax, edi
push eax
push edx
push edi
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 0x26c]
mov dword [eax], 1
jmp 0x40b979
mov esi, dword [ebp - 0x24c]
mov eax, dword [esi]
test edx, edx
je 0x40b8dd
push 0x54
push 0x64
push 0x64
push 0xfffff448
push 0xfffff448
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 0x26c]
mov dword [eax], 1
jmp 0x40b979
mov esi, dword [ebp - 0x254]
push 0x94
push 0
push 0
push 0
push 0
push 0
push eax
mov dword [esi + 0x24], 0
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [esi + 0xb8]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, dword [ebp - 0x26c]
mov dword [eax], 1
jmp 0x40b979
cmp eax, 0x86
jne 0x40b943
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40b96d
cmp dword [edi + 0x10], 0
jne 0x40b96d
xor eax, eax
cmp dword [ebx + 0x10], 1
sete al
push eax
mov dword [edi + 0xc], eax
call fcn.0042125a
jmp 0x40b96d
cmp eax, 6
je 0x40b96d
cmp eax, 2
jne 0x40b979
mov eax, dword [edi + 4]
test eax, eax
je 0x40b96d
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b96d
mov eax, dword [edi + 4]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x26c]
mov dword [eax], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00453c11
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
call fcn.004584af
int3