Function at 0x40a340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe8
mov eax, dword [0x423004]
xor eax, esp
mov dword [esp + 0xe4], eax
push esi
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0xa
push 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40a7f8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40a7f8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40a7f8
push dword [esp + 0x1c]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40a7f8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40a7f8
push dword [esp + 0x1c]
push edi
push eax
call fcn.0040bd20
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x40a7f1
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40a7f8
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x421b94
push 1
push 0
push 0x41b210
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40a44c
mov eax, dword [esi]
push esi
call dword [eax + 8]
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.0040a80c
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
push 1
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
js 0x40a432
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test eax, eax
js 0x40a432
cmp dword [esp + 0x20], 1
jne 0x40a432
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
test eax, eax
js 0x40a432
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push dword [esp + 0x18]
push 0x41b220
call dword [sym.imp.WindowsCodecs.dll_WICConvertBitmapSource]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi]
mov edi, dword [esp + 0x24]
push esi
call dword [eax + 8]
test edi, edi
je 0x40a7f8
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
push edi
mov dword [esp + 0x28], 0
call dword [eax + 0xc]
test eax, eax
js 0x40a5ae
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40a5ae
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40a5ae
xorps xmm0, xmm0
mov dword [esp + 0x84], 0x28
neg eax
movlpd qword [esp + 0x98], xmm0
push 0
movlpd qword [esp + 0xa4], xmm0
movlpd qword [esp + 0xac], xmm0
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], 0x200001
mov dword [esp + 0x98], 0
call dword [sym.imp.USER32.dll_GetDC]
push 0
mov esi, eax
mov dword [esp + 0x34], 0
push 0
lea eax, [esp + 0x38]
push eax
push 0
lea eax, [esp + 0x94]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push esi
push 0
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x40a5c8
mov eax, dword [edi]
push edi
call dword [eax + 8]
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.0040a80c
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
push dword [esp + 0x30]
mov ecx, dword [edi]
lea edx, [eax*4]
mov eax, edx
imul eax, dword [esp + 0x20]
push eax
push edx
push 0
push edi
call dword [ecx + 0x1c]
test eax, eax
mov eax, dword [edi]
push edi
js 0x40a5b1
call dword [eax + 8]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
xorps xmm0, xmm0
push 0x7f00
push 0
mov dword [esp + 0x4c], 0
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x68], xmm0
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x6c], str.Splash
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x90000080
push 0
push dword [esp + 0x90]
push 0x80000
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6c]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x70]
xorps xmm0, xmm0
push 1
movlpd qword [esp + 0x38], xmm0
push dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x7c]
push dword [esp + 0x3c]
mov dword [esp + 0x38], ecx
call dword [sym.imp.USER32.dll_MonitorFromPoint]
xorps xmm0, xmm0
lea ecx, [esp + 0xb0]
push ecx
movaps xmmword [esp + 0xb4], xmm0
push eax
movaps xmmword [esp + 0xc8], xmm0
movq qword [esp + 0xd8], xmm0
mov dword [esp + 0xb8], 0x28
call dword [sym.imp.USER32.dll_GetMonitorInfoA]
mov eax, dword [esp + 0xcc]
sub eax, dword [esp + 0xc4]
sub eax, dword [esp + 0x28]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0xc4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xd0]
sub eax, dword [esp + 0xc8]
sub eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0xc8]
push 0
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push esi
push eax
mov dword [esp + 0x2c], eax
call edi
mov esi, eax
push 2
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
lea eax, [esp + 0x40]
mov word [esp + 0x22], 0x1ff
push eax
push dword [esp + 0x34]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
push esi
mov esi, dword [esp + 0x28]
push esi
call edi
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x20]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x10]
mov edx, str._TEMP_onefile__PID__splash_feedback.tmp
push 0x1000
mov ecx, 0x427418
mov dword [0x4243e8], eax
call fcn.00409400
add esp, 4
test al, al
je 0x40a7f8
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push 0x427418
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x4243ec], 1
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.0040a80c
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0xec]
pop edi
pop esi
xor ecx, esp
call fcn.0040a80c
mov esp, ebp
pop ebp
ret