Function at 0x48c804
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 0x4a8f42
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x48c], 0
and dword [ebp - 0x484], 0
and dword [ebp - 0x474], 0
and dword [ebp - 0x470], 0
and dword [ebp - 0x47c], 0
and dword [ebp - 0x478], 0
xor eax, eax
mov word [ebp - 0x468], ax
push 0x206
push 0
lea eax, [ebp - 0x466]
push eax
call fcn.00458260
add esp, 0xc
and dword [ebp - 0x490], 0
or dword [ebp - 0x46c], 0xffffffff
and dword [ebp - 0x488], 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x474], eax
cmp dword [ebp - 0x474], 0
jne 0x48c8b2
xor eax, eax
jmp 0x48caa7
push dword [ebp - 0x474]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x478], eax
cmp dword [ebp - 0x478], 0
jne 0x48c8d7
xor eax, eax
jmp 0x48caa7
push dword [ebp - 0x474]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x470], eax
cmp dword [ebp - 0x470], 0
jne 0x48c8fc
xor eax, eax
jmp 0x48caa7
push dword [ebp - 0x470]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0
jne 0x48c91e
xor eax, eax
jmp 0x48caa7
xor eax, eax
mov word [ebp - 0x260], ax
push 0x208
push 0
lea eax, [ebp - 0x25e]
push eax
call fcn.00458260
add esp, 0xc
push 0x104
push dword [ebp + 0x10]
lea eax, [ebp - 0x260]
push eax
call fcn.0045f321
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48c983
push 0
lea eax, [ebp - 0x260]
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 - 0x46c], eax
cmp dword [ebp - 0x46c], 0xffffffff
jne 0x48c9c0
push dword [ebp - 0x470]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x48caa7
push 0
lea eax, [ebp - 0x488]
push eax
push dword [ebp - 0x478]
push dword [ebp - 0x47c]
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x484], eax
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x46c], 0xffffffff
cmp dword [ebp - 0x484], 0
jne 0x48ca08
jmp 0x48ca99
cmp dword [ebp + 0x18], 0
je 0x48ca8a
xor eax, eax
mov word [ebp - 0x54], ax
push 0x40
push 0
lea eax, [ebp - 0x52]
push eax
call fcn.00458260
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
mov edx, dword [ebp - 0x478]
mov ecx, dword [ebp - 0x47c]
call fcn.00433217
pop ecx
lea ecx, [ebp - 0x480]
call fcn.00407094
and dword [ebp - 4], 0
lea edx, [ebp - 0x480]
mov ecx, dword [ebp + 0x10]
call fcn.00433220
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x480]
call fcn.00418088
test eax, eax
je 0x48ca7b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.00405d4a
jmp 0x48ca99
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.00405d4a
mov dword [ebp - 0x48c], 1
xor eax, eax
inc eax
jmp 0x48caa7
push dword [ebp - 0x470]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455912
mov esp, ebp
pop ebp
ret