Function at 0x423090
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x28], 0
push ebx
push esi
push edi
jne 0x423117
mov eax, dword [esp + 0x28]
push 0x5dfa3c
push eax
call fcn.0051ff0f
mov edi, eax
add esp, 8
test edi, edi
je 0x4230ec
push 2
push 0
push edi
call fcn.0051fdc4
push edi
call fcn.0051fccc
push 0
push 0
push edi
mov ebx, eax
call fcn.0051fdc4
add esp, 0x1c
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push edi
test esi, esi
jne 0x4230f5
call fcn.0051fab3
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
push ebx
push 1
push esi
call fcn.0051fa1f
push edi
call fcn.0051fab3
add esp, 0x14
cmp dword [esp + 0x38], 0
je 0x423179
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4230ec
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4230ec
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call fcn.0051ff80
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esp + 0x38], 0
jne 0x423287
lea eax, [esp + 0x10]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4231b7
lea ecx, [esp + 0xc]
push ecx
push 0x5fb074
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
cmp dword [esp + 0xc], 0
mov eax, dword [esp + 0x10]
push eax
jne 0x4231c7
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
call edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x423250
mov edi, dword [esp + 0x40]
test edi, edi
je 0x423250
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 0x18]
push 0x58
push ecx
call fcn.00423050
mov edx, dword [esp + 0x24]
push 0x5a
push edx
mov dword [esi], eax
call fcn.00423050
add esp, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x14]
push 4
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_CopyImage]
mov ecx, dword [esp + 0x30]
mov esi, eax
test ecx, ecx
je 0x42327b
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x14
ret