Function at 0x43bea0
Capabilities:
Create directory
Extract resource via kernel32 functions
Query environment variable
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x49de9b
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x4c1bd8]
xor eax, esp
mov dword [esp + 0x318], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c1bd8]
xor eax, esp
push eax
lea eax, [esp + 0x330]
mov dword fs:[0], eax
push 0
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp dword [esp + 0x340], 0
mov esi, eax
mov eax, 0x1f4
je 0x43bf06
call fcn.004115c0
neg eax
sbb eax, eax
neg eax
add eax, 0x12c
movzx eax, ax
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x43c029
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x18], eax
test eax, eax
je 0x43c029
push edi
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
mov eax, dword [ebp + 0x14]
lea esi, [ebp + 0x14]
push 0
push eax
call ebx
test eax, eax
jne 0x43bfc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x43bfc1
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x12e]
push edx
mov word [esp + 0x130], cx
call fcn.00454ce0
add esp, 0xc
push 0x104
lea eax, [esp + 0x128]
push eax
push str._windir__temp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x128]
push ecx
push 0x4a5390
push esi
call fcn.0040e7e0
mov eax, dword [esi]
add esp, 0x10
push 0
push eax
call ebx
push str._setup.xml
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00416660
add esp, 0xc
mov eax, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
mov dword [esp + 0x354], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
jne 0x43c030
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x338], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x43c029
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x43c0b9
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x20]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x103
lea eax, [esp + 0x25]
push 0
push eax
mov byte [esp + 0x2c], 0
call fcn.00454ce0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push 0
push 0
push 0x103
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.0043ad20
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x338], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x43c0b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x330]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.00454cc7
add esp, 0x328
ret 8