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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bd4b
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x434090]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
push 0x42ef98
movzx eax, word [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jne 0x41161b
mov eax, dword [ebp - 0x10]
jmp 0x41191c
mov ecx, dword [ebp - 0x240]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
jne 0x41164e
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x10]
jmp 0x41191c
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x240]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x234]
push eax
call fcn.0041c210
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 0x230], 0
xor edx, edx
mov word [ebp - 0x22c], dx
push 0x206
push 0
lea eax, [ebp - 0x22a]
push eax
call fcn.0041b6f0
add esp, 0xc
cmp dword [ebp + 0xc], 1
jne 0x411726
lea ecx, [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x41170d
jmp 0x411721
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.00416050
add esp, 8
mov dword [ebp - 0x230], eax
jmp 0x41180e
lea ecx, [ebp - 0x22c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x248]
call fcn.00405930
mov dword [ebp - 4], 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
push str._d_d.jpg
lea edx, [ebp - 0x248]
push edx
call fcn.00407990
add esp, 0x10
lea ecx, [ebp - 0x248]
call fcn.00406040
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x24c], 0
push 0x42efb4
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x24c]
push edx
call fcn.0041a032
add esp, 0xc
cmp dword [ebp - 0x24c], 0
je 0x4117e5
mov eax, dword [ebp - 0x24c]
push eax
push 1
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call fcn.0041aacc
add esp, 0x10
mov eax, dword [ebp - 0x24c]
push eax
call fcn.0041a0fc
add esp, 4
push 0
lea ecx, [ebp - 0x22c]
push ecx
call fcn.00410290
add esp, 8
mov dword [ebp - 0x230], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.004059f0
cmp dword [ebp - 0x230], 0
je 0x41189e
mov ecx, dword [ebp - 0x230]
call fcn.00415fc0
test eax, eax
jne 0x41189e
push 0x14
call fcn.0041a193
add esp, 4
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x411856
mov ecx, dword [ebp - 0x254]
call fcn.004113a0
mov dword [ebp - 0x260], eax
jmp 0x411860
mov dword [ebp - 0x260], 0
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x250], edx
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x230]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
lea edx, [ebp - 0x22c]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.00405a10
jmp 0x411902
cmp dword [ebp - 0x230], 0
je 0x4118ee
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x25c]
mov dword [ebp - 0x258], ecx
cmp dword [ebp - 0x258], 0
je 0x4118e4
push 1
mov edx, dword [ebp - 0x258]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x258]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x264], eax
jmp 0x4118ee
mov dword [ebp - 0x264], 0
cmp dword [ebp - 0x14], 0
je 0x411902
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00419bfc
mov esp, ebp
pop ebp
ret