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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f766
mov eax, dword fs:[0]
push eax
sub esp, 0x48c
mov eax, dword [0x4d2a20]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x444], 0
and dword [ebp - 0x440], 0
and dword [ebp - 0x44c], 0
and dword [ebp - 0x43c], 0
and dword [ebp - 0x224], 0
and dword [ebp - 0x448], 0
and word [ebp - 0x21c], 0
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
and dword [ebp - 0x10], 0
or dword [ebp - 0x438], 0xffffffff
and dword [ebp - 0x220], 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x44c], eax
cmp dword [ebp - 0x44c], 0
jne 0x499c54
xor eax, eax
jmp 0x499e5b
push dword [ebp - 0x44c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x499c79
xor eax, eax
jmp 0x499e5b
push dword [ebp - 0x44c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x499c9e
xor eax, eax
jmp 0x499e5b
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x499cc0
xor eax, eax
jmp 0x499e5b
and word [ebp - 0x434], 0
push 0x208
push 0
lea eax, [ebp - 0x432]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
push dword [ebp + 0x10]
push 0x104
lea eax, [ebp - 0x434]
push eax
call sub.MSVCR80.dll_wcsncpy_s
add esp, 0x10
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x499d29
push 0
lea eax, [ebp - 0x434]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0xffffffff
jne 0x499d66
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x499e5b
push 0
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x448]
push dword [ebp - 0x224]
push dword [ebp - 0x438]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x440], eax
push dword [ebp - 0x438]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x438], 0xffffffff
cmp dword [ebp - 0x440], 0
jne 0x499dae
jmp 0x499e4d
cmp dword [ebp + 0x18], 0
je 0x499e3e
and word [ebp - 0x494], 0
push 0x40
push 0
lea eax, [ebp - 0x492]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push dword [ebp - 0x448]
lea esi, [ebp - 0x494]
mov ecx, dword [ebp - 0x224]
call fcn.0044e977
pop ecx
lea ecx, [ebp - 0x498]
call fcn.00401d20
and dword [ebp - 4], 0
lea esi, [ebp - 0x498]
mov ecx, dword [ebp + 0x10]
call fcn.0044e97c
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x498]
call fcn.00401019
test eax, eax
je 0x499e2f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x498]
call fcn.00406df8
jmp 0x499e4d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x498]
call fcn.00406df8
mov dword [ebp - 0x444], 1
xor eax, eax
inc eax
jmp 0x499e5b
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047676d
leave
ret