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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44932c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x45c510]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Program
movzx eax, word [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x410f54
xor al, al
jmp 0x4111d8
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x410f7d
xor al, al
jmp 0x4111d8
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x128], eax
lea ecx, [ebp - 0x154]
call fcn.004025c0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x154]
push edx
call fcn.00410e50
add esp, 8
mov byte [ebp - 0x124], 0
push 0x103
push 0
lea eax, [ebp - 0x123]
push eax
call fcn.00433610
add esp, 0xc
lea ecx, [ebp - 0x124]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0x411018
cmp dword [ebp - 0x138], 0x104
jbe 0x411049
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [ebp - 0x159], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x154]
call fcn.00402670
mov al, byte [ebp - 0x159]
jmp 0x4111d8
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x178]
call fcn.004025f0
mov dword [ebp - 0x1b8], eax
mov ecx, dword [ebp - 0x1b8]
mov dword [ebp - 0x1bc], ecx
mov byte [ebp - 4], 1
push 0x45029c
mov edx, dword [ebp - 0x1bc]
push edx
lea eax, [ebp - 0x194]
push eax
call fcn.00406830
add esp, 0xc
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c4], ecx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x154]
push edx
mov eax, dword [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.00403740
add esp, 0xc
mov dword [ebp - 0x1c8], eax
mov edx, dword [ebp - 0x1c8]
mov dword [ebp - 0x1cc], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0x154]
call fcn.00402690
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1b0]
call fcn.00402670
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x194]
call fcn.00402670
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x178]
call fcn.00402670
mov byte [ebp - 0x129], 0
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x154]
call fcn.004027e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x41118e
push 0
lea ecx, [ebp - 0x158]
push ecx
mov edx, dword [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41118e
mov edx, dword [ebp - 0x158]
cmp edx, dword [ebp - 0x128]
jne 0x41118e
lea eax, [ebp - 0x154]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00402690
mov byte [ebp - 0x129], 1
lea ecx, [ebp - 0x154]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00402690
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov cl, byte [ebp - 0x129]
mov byte [ebp - 0x1b1], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x154]
call fcn.00402670
mov al, byte [ebp - 0x1b1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00430e59
mov esp, ebp
pop ebp
ret