Function at 0x43f090
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x48784b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4a4100]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4100]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
movzx eax, word [esp + 0x244]
push 0x4942b8
xor edi, edi
push eax
push edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x43f103
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x24], eax
cmp eax, edi
jne 0x43f10a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x43f2e9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov edi, eax
push ebx
push edi
call fcn.00474720
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x32]
push edx
mov word [esp + 0x34], cx
call fcn.00474b70
add esp, 0xc
cmp dword [esp + 0x248], 1
jne 0x43f195
lea eax, [esp + 0x14]
push eax
push 1
push ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x43f2c3
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004431b0
add esp, 4
mov edi, eax
jmp 0x43f271
lea edx, [esp + 0x28]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x4a8008]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a8008
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x23c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
lea eax, [esp + 0x24]
push str._d_d.jpg
push eax
call fcn.00433fe0
mov ebx, dword [esp + 0x2c]
add esp, 0x10
push ebx
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x4942d4
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0
call fcn.004704d7
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
je 0x43f23b
push eax
push 1
push esi
push edi
call fcn.00470baf
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00470841
add esp, 0x14
lea edx, [esp + 0x28]
push edx
call fcn.0043ccf0
mov edi, eax
lea eax, [ebx - 0x10]
add esp, 4
mov dword [esp + 0x23c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f271
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x43f2c3
mov eax, dword [edi + 8]
mov dword [edi + 8], 0
test eax, eax
jne 0x43f2b9
push 0x14
call fcn.0046f046
add esp, 4
test eax, eax
je 0x43f29a
mov esi, eax
call fcn.0043d730
jmp 0x43f29c
xor eax, eax
mov dword [eax + 0xc], edi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
mov dword [eax + 8], ecx
push edx
lea ecx, [eax + 0x10]
mov dword [esp + 0x24], eax
call fcn.004023c0
jmp 0x43f2d3
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43f2d3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0046f01c
add esp, 0x22c
ret