Function at 0x41eff0
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477a98
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4934d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], 0
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x4c], 2
mov ecx, dword [ebp - 0x5c]
add ecx, 0xc8
call fcn.0040de90
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x50]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
push 0x47f7d8
call fcn.00409aa0
lea edx, [ebp - 0x30]
push edx
call fcn.00426dd0
add esp, 0x10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0040de90
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41f18c
mov byte [ebp - 0xd], 0
push 0x47f804
push 0x65
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x41f0a9
jmp 0x41f18c
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
ja 0x41f0cb
jmp 0x41f18c
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x41f0ed
jmp 0x41f18c
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x41f105
jmp 0x41f18c
push 0
push 0x80
push 2
push 0
push 7
push 0x40000000
lea ecx, [ebp - 0x30]
call fcn.0040de90
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x41f131
jmp 0x41f18c
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x3c], 0
je 0x41f170
cmp dword [ebp - 0x44], 0
jbe 0x41f166
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x48], 0
je 0x41f180
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [ebp - 0xd], 1
xor ecx, ecx
jne 0x41f084
movzx edx, byte [ebp - 0xd]
cmp edx, 1
jne 0x41f1c0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041b940
mov ecx, dword [ebp - 0x58]
or ecx, 1
mov dword [ebp - 0x58], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040de50
mov eax, dword [ebp + 8]
jmp 0x41f1f9
push 0x47f80c
mov ecx, dword [ebp + 8]
call fcn.0040ddd0
mov edx, dword [ebp - 0x58]
or edx, 1
mov dword [ebp - 0x58], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040de50
mov eax, dword [ebp + 8]
jmp 0x41f1f9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00453569
mov esp, ebp
pop ebp
ret 4