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

Disassembly:
push 0xffffffffffffffff
push 0x4897bb
mov eax, dword fs:[0]
push eax
sub esp, 0x528
mov eax, dword [0x4a9150]
xor eax, esp
mov dword [esp + 0x524], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a9150]
xor eax, esp
push eax
lea eax, [esp + 0x53c]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x41d4d6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x41d4d6
push edi
push esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
mov eax, dword [esi + 0x10]
add esi, 0x10
push ebx
push eax
call edi
cmp eax, ebx
jne 0x41d474
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41d474
push 0x206
lea ecx, [esp + 0x12e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x134], ax
call fcn.0043f2b0
add esp, 0xc
push 0x104
lea edx, [esp + 0x12c]
push edx
push str._windir__temp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esp + 0x12c]
push eax
push str._s_d
push esi
call fcn.00414dd0
mov eax, dword [esi]
add esp, 0x10
push ebx
push eax
call edi
push str._setup.xml
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00419880
add esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push edx
mov dword [esp + 0x560], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x41d4dd
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x544], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x41d4d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x41d5b6
mov edx, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebp
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 + 0x29]
push ebx
push eax
mov byte [esp + 0x30], bl
call fcn.0043f2b0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ebx
push ebx
push 0x103
lea edx, [esp + 0x30]
push edx
push ecx
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp byte [esp + 0x54c], bl
je 0x41d580
push 0x206
lea ecx, [esp + 0x336]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x33c], ax
call fcn.0043f2b0
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x340]
push 0x48d250
push eax
call fcn.004112e0
add esp, 0x18
push ebx
push 0x48d244
lea ecx, [esp + 0x338]
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
call fcn.0041c230
mov bl, al
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x544], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x41d5b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x53c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x524]
xor ecx, esp
call fcn.0043f097
add esp, 0x534
ret 4