Function at 0x4017e0
Capabilities:
Extract resource via kernel32 functions
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4031e3
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x12c]
call fcn.00401460
cmp dword [ebp - 0x118], 8
lea eax, [ebp - 0x12c]
push 0x20
cmovae eax, dword [ebp - 0x12c]
push 0
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x15c], edi
test edi, edi
je 0x401ab9
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x14c], 0
push eax
push 0x401760
push str.UI_L
push edi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
xor esi, esi
mov dword [ebp - 0x158], esi
mov eax, dword [ebp - 0x14c]
mov byte [ebp - 4], 2
test eax, eax
je 0x4019fc
push str.UI_L
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x4019fc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x14c], edi
test eax, eax
je 0x4019fc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x154], eax
test eax, eax
je 0x4019fc
test edi, edi
je 0x4019fc
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.004013e0
lea ecx, [ebp - 0x158]
add esp, 8
cmp ecx, eax
je 0x401923
mov esi, dword [eax]
mov dword [eax], 0
mov dword [ebp - 0x158], esi
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x401936
push eax
call fcn.004024ab
add esp, 4
sub esp, 0x18
mov edi, esp
mov ecx, edi
push 0x30
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
call fcn.00401c90
push dword [ebp - 0x14c]
mov dword [edi + 0x10], 0x20
push dword [ebp - 0x154]
mov dword [edi + 0x14], 0x2f
movups xmm0, xmmword [str.XNVhLV7v7q2FBwLGclUkCxdgOAoW8icT]
push esi
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x40422c]
movups xmmword [eax + 0x10], xmm0
mov byte [eax + 0x20], 0
mov dword [edi], eax
call fcn.004016d0
add esp, 0x24
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.00402100
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4019b4
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push eax
push str.Param_1
call edi
lea ecx, [ebp - 0x144]
call fcn.00401610
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.00402190
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4019e9
mov eax, dword [eax]
push eax
push str.Param_2
call edi
lea ecx, [ebp - 0x144]
call fcn.00401610
cmp dword [ebp - 0x118], 8
lea ecx, [ebp - 0x16c]
lea eax, [ebp - 0x12c]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x12c]
push ecx
push eax
movups xmmword [ebp - 0x16c], xmm0
call section..text
add esp, 8
mov dword [ebp - 0x154], eax
test eax, eax
je 0x401a90
push 0xbb8
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x401a90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
mov edi, eax
lea eax, [ebp - 0x114]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push edi
lea eax, [ebp - 0x114]
push 0x404260
push eax
call fcn.00401420
add esp, 0x18
lea eax, [ebp - 0x114]
push 0
push 0x40427f
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x154], 0
setne byte [ebp - 0x145]
test esi, esi
je 0x401ac0
push esi
call fcn.004024ab
add esp, 4
jmp 0x401ac0
mov byte [ebp - 0x145], 0
mov edx, dword [ebp - 0x118]
cmp edx, 8
jb 0x401afc
mov ecx, dword [ebp - 0x12c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401af2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401b45
push edx
push ecx
call fcn.00402456
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 7
mov word [ebp - 0x12c], ax
cmp edx, 8
jb 0x401b55
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401b4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401b4b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00402456
add esp, 8
mov al, byte [ebp - 0x145]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402464
mov esp, ebp
pop ebp
ret