Function at 0x405460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x431738
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x440750]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x440750]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
lea ecx, [esp + 0x40]
push ecx
xor ebx, ebx
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x38], eax
mov edx, dword [edi + 4]
push 0x3ed
push edx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
lea edx, [esp + 0x18]
push edx
push eax
call esi
test eax, eax
je 0x405506
mov edx, dword [edi + 4]
lea ecx, [esp + 0x20]
push ecx
push edx
call esi
mov eax, dword [0x443b00]
push str.SFXJPG
push 0xce
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
cmp ebp, ebx
jne 0x405537
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.USER32.dll_EndPaint]
jmp 0x40563f
mov eax, dword [0x443b00]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, ebx
je 0x405522
mov eax, dword [0x443b00]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x34], eax
cmp eax, ebx
je 0x405522
push ebp
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push eax
call fcn.00425170
add esp, 0xc
lea edx, [esp + 0x30]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x4055b4
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
jmp 0x40563f
lea edx, [esp + 0x14]
push edx
push 0x435cf8
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
jl 0x405636
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
push ebx
mov edx, dword [eax]
mov ebp, ecx
neg ebp
push ebp
mov ebp, dword [esp + 0x34]
push ebp
mov ebp, dword [esp + 0x30]
mov edx, dword [edx + 0x20]
push ecx
mov ecx, dword [esp + 0x2c]
push ebx
sub ebp, ecx
push ebp
mov ebp, dword [esp + 0x38]
sub ebp, dword [esp + 0x30]
push ebp
push ecx
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
push eax
call edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [edi + 0x18]
mov dword [eax + 0x20], ebx
lea ecx, [esp + 0x38]
call fcn.004051f0
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0042497b
add esp, 0x7c
ret 4