Function at 0x4525d0
Capabilities:
Create directory
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd7bb
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4fe0a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
or ebx, 0xffffffff
cmp dword [edi + 0x11c], 0
mov dword [ebp - 0x220], eax
lea eax, [edi + 4]
mov dword [ebp - 0x228], eax
jne 0x452680
mov edx, str.XDCadViewrIns
lea ecx, [ebp - 0x224]
call fcn.00474370
mov dword [ebp - 4], 0
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452640
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x10c]
call fcn.00426a30
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x452680
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0x120], 8
lea esi, [edi + 0x10c]
jb 0x452691
mov esi, dword [esi]
call fcn.00404d50
mov ecx, eax
test ecx, ecx
je 0x4528a1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push esi
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 1
call fcn.004046b0
test al, al
jne 0x4526ee
test esi, esi
jne 0x4526cd
xor ecx, ecx
jmp 0x4526e1
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4526d2
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x21c]
call fcn.00404980
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x452712
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x224]
push eax
lea ecx, [edi + 4]
call fcn.00455e90
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45273c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0x120], 8
lea esi, [edi + 0x10c]
mov eax, esi
jb 0x45274f
mov eax, dword [esi]
push ecx
push 1
push eax
call fcn.00453220
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x452762
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049edc0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x45278b
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004b065b
add esp, 0xc
lea eax, [ebp - 0x218]
push str.setup.config
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov esi, dword [edi + 0x188]
test esi, esi
jne 0x4527c6
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
push 0xa
push 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4527eb
mov eax, dword [ebp - 0x220]
mov dword [eax], 4
jmp 0x45287e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x452807
mov eax, dword [ebp - 0x220]
mov dword [eax], 5
jmp 0x45287e
push edi
push esi
mov dword [ebp - 0x21c], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 1
mov edi, eax
lea eax, [ebp - 0x218]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x452872
test esi, esi
je 0x452872
push 0
lea eax, [ebp - 0x21c]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x218]
push eax
call fcn.0045f5a0
jmp 0x452883
mov eax, dword [ebp - 0x220]
mov dword [eax], 6
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049d3dd
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404b30
int3