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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53100d
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x592a80]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x170], ecx
push 0x540a14
push 0x87
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x128], eax
mov edx, dword [ebp - 0x144]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x124], 0
push 0x103
push 0
lea eax, [ebp - 0x123]
push eax
call fcn.00508920
add esp, 0xc
lea ecx, [ebp - 0x124]
push ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x14c], eax
push str.Mark
mov edx, dword [ebp - 0x14c]
lea eax, [ebp + edx - 0x124]
push eax
call fcn.00509090
add esp, 8
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x414232
xor eax, eax
jmp 0x4143d8
push 0x540a24
lea edx, [ebp - 0x124]
push edx
call fcn.005096f2
add esp, 8
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x150]
push ecx
push 1
mov edx, dword [ebp - 0x128]
push edx
call fcn.0050abf6
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x148]
push eax
call fcn.005092c3
add esp, 4
lea ecx, [ebp - 0x140]
call fcn.004070e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x140]
call fcn.00407160
movzx edx, al
test edx, edx
je 0x4143b6
lea ecx, [ebp - 0x140]
call fcn.00407300
mov dword [ebp - 0x15c], eax
lea ecx, [ebp - 0x140]
call fcn.00407320
mov dword [ebp - 0x158], eax
lea ecx, [ebp - 0x140]
call fcn.00407340
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x170]
cmp dword [eax + 0x94], 0
je 0x41433c
mov ecx, dword [ebp - 0x170]
mov edx, dword [ecx + 0x94]
mov dword [ebp - 0x168], edx
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
je 0x414332
push 1
mov ecx, dword [ebp - 0x164]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x164]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x174], eax
jmp 0x41433c
mov dword [ebp - 0x174], 0
mov ecx, dword [ebp - 0x170]
push ecx
mov edx, dword [ebp - 0x160]
push edx
mov eax, dword [ebp - 0x158]
push eax
mov ecx, dword [ebp - 0x15c]
push ecx
mov ecx, dword [ebp - 0x170]
call fcn.00414400
mov edx, dword [ebp - 0x170]
mov dword [edx + 0x94], eax
mov ecx, dword [ebp - 0x170]
call fcn.00414650
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x154]
push eax
mov ecx, dword [ebp - 0x170]
add ecx, 0x98
call fcn.00402300
mov ecx, dword [ebp - 0x170]
mov edx, dword [ecx + 0x94]
push edx
mov ecx, dword [ebp - 0x170]
add ecx, 0x98
call fcn.00402330
mov dword [ebp - 0x16c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
call fcn.00407120
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0050876f
mov esp, ebp
pop ebp
ret