Function at 0x40a430
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 0x4ec060
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x278
mov eax, dword [0x53e01c]
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 0x40a49e
cmp eax, 0x110
jne 0x40aa1c
cmp dword [edi + 4], 0
je 0x40aa1c
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x8000000
je 0x40a4bf
mov dword [edi + 0x10], 1
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
mov dword [ebp - 0x250], ecx
cmp dword [ecx + 4], 0
jne 0x40aa19
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 0x53fa90
cmovne esi, edx
call fcn.004092f0
add esp, 8
movzx eax, ax
push eax
push 0
push esi
mov esi, dword [ebp - 0x250]
mov ecx, esi
push edi
push 0
push 0
push dword [ebp - 0x25c]
call fcn.004091a0
xor eax, eax
add esi, 0x44
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], esi
nop
cmp dword [esi - 0x10], 0
jne 0x40a9b2
mov edi, dword [0x545df4]
test edi, edi
jne 0x40a6ae
push 0x208
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.004beec0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40a6ae
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x40a5a0
xor edi, edi
jmp 0x40a6ae
xor eax, eax
mov dword [ebp - 0x248], 0
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x238], 0
lea edx, [eax + 2]
mov dword [ebp - 0x234], 7
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a5d0
sub eax, edx
lea ecx, [ebp - 0x248]
sar eax, 1
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00407890
push 1
push 0x52bac0
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0
call fcn.00404090
push 0xc
push 0x52baa4
lea ecx, [ebp - 0x248]
call fcn.00404090
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push 2
cmovae eax, dword [ebp - 0x248]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 4], 0xffffffff
mov edi, eax
mov edx, dword [ebp - 0x234]
mov dword [0x545df4], edi
cmp edx, 8
jb 0x40a691
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a681
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac9e
push edx
push ecx
call fcn.0045b5e1
mov edi, dword [0x545df4]
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp dword [ebp - 0x260], 0
mov ecx, 0x148
push 0x52ac58
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 0x40a8e9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x40a8e9
push dword [ebp - 0x258]
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x258], eax
test eax, eax
je 0x40a8e9
push dword [ebp - 0x24c]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40a8dd
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40a8d6
push dword [ebp - 0x24c]
push dword [ebp - 0x258]
push eax
call fcn.004bf020
add esp, 0xc
mov dword [ebp - 0x254], 0
lea eax, [ebp - 0x254]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40a8cf
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x268], eax
mov eax, dword [0x545dec]
test al, 1
jne 0x40a7dc
push 0
or eax, 1
mov dword [0x545dc8], 0
push 0x545dcc
mov dword [0x545dec], eax
mov dword [0x545de4], 0
mov dword [0x545de8], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x40a7cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40a7ca
movzx eax, ax
or eax, 0x80070000
mov dword [0x545de8], eax
push 0x4f1b05
call fcn.0045b82b
add esp, 4
cmp dword [0x545de8], 0
jne 0x40a8c3
push 0x545dcc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x545dc8], 0
jne 0x40a84f
lea eax, [ebp - 0x284]
mov dword [ebp - 0x27c], 1
push eax
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x278], 0
push eax
push 0x545dc8
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
je 0x40a84f
push 0x545dcc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40a8c3
push 0x545dcc
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 - 0x22c], ecx
mov dword [ebp - 0x228], 0
test eax, eax
je 0x40a89e
push ecx
jmp 0x40a8b3
lea eax, [ebp - 0x230]
push eax
lea ecx, [esi - 0x14]
call fcn.00420210
push dword [ebp - 0x22c]
mov dword [ebp - method.Gdiplus::Bitmap.virtual_0], vtable.Gdiplus::Image.0
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
mov eax, dword [ebp - 0x254]
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 0x40a9ac
xor ecx, ecx
mov dword [ebp - 0x24c], ecx
cmp dword [esi - 8], ecx
jle 0x40a9ac
mov edx, dword [esi - 4]
nop word [eax + eax]
mov dword [ebp - 0x254], 0
test edx, edx
jle 0x40a99c
nop
mov eax, dword [esi + 4]
imul eax, ecx
mov ecx, dword [esi]
imul ecx, dword [ebp - 0x254]
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 - 0x254]
mov ecx, dword [ebp - 0x24c]
inc eax
shr edx, 7
mov byte [edi + 2], dl
mov edx, dword [esi - 4]
mov dword [ebp - 0x254], eax
cmp eax, edx
jl 0x40a920
inc ecx
mov dword [ebp - 0x24c], ecx
cmp ecx, dword [esi - 8]
jl 0x40a910
mov eax, dword [ebp - 0x260]
inc eax
add esi, 0x34
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], esi
cmp eax, 2
jl 0x40a540
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f84
push 0
call esi
mov edi, dword [ebp - 0x250]
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 0x40aa4b
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40ac70
cmp dword [edi + 0x10], 0
je 0x40aa3e
push 1
call fcn.00420af0
jmp 0x40ac70
push dword [edi + 0xc]
call fcn.00420af0
jmp 0x40ac70
cmp eax, 0x47
jne 0x40ac1e
mov eax, dword [edi + 4]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x40ac10
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ac10
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 0x40abaf
test cl, cl
js 0x40abaf
test edx, edx
jne 0x40abaf
mov esi, dword [ebp - 0x250]
lea eax, [ebp - 0x230]
push eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x230], xmm0
mov dword [esi + 0x24], 1
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_GetWindowRect]
movups xmm0, xmmword [ebp - 0x230]
mov edi, dword [esi + 0xb0]
movups xmmword [ebp - 0x27c], xmm0
mov eax, dword [ebp - 0x278]
sub eax, dword [esi + 0xa8]
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x250]
sub edi, ecx
mov eax, dword [ebp - 0x274]
add eax, dword [esi + 0xb4]
add edi, dword [ebp - 0x270]
movd edx, xmm0
mov dword [ebp - 0x24c], eax
sub edx, dword [esi + 0xac]
cmp dword [ebp - 0x264], 0
mov dword [ebp - 0x268], edx
je 0x40ab6e
push 0x54
push edi
sub eax, edx
push eax
push ecx
push edx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x250]
xor eax, eax
cmp dword [ebp - 0x25c], eax
setne al
lea eax, [eax*2 + 0x14]
or eax, dword [ebp - 0x258]
push eax
mov eax, dword [ebp - 0x24c]
push edi
sub eax, edx
push eax
push ecx
push edx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 0x26c]
mov dword [eax], 1
jmp 0x40ac7c
mov esi, dword [ebp - 0x250]
mov eax, dword [esi + 4]
test edx, edx
je 0x40abe6
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 0x40ac7c
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 0x40ac7c
cmp eax, 0x86
jne 0x40ac46
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40ac70
cmp dword [edi + 0x10], 0
jne 0x40ac70
xor eax, eax
cmp dword [ebx + 0x10], 1
sete al
push eax
mov dword [edi + 0xc], eax
call fcn.00420af0
jmp 0x40ac70
cmp eax, 6
je 0x40ac70
cmp eax, 2
jne 0x40ac7c
mov eax, dword [edi + 4]
test eax, eax
je 0x40ac70
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ac70
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.0045b5b0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
call fcn.004c1e0f
int3