Function at 0x4230c8
Capabilities:
Resolve path using msvcrt
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x449014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x254], edx
xor edi, edi
mov dword [ebp - 0x24c], ebx
mov ecx, 0x800
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x23c], edi
call fcn.00426940
mov esi, eax
push 0x400
push esi
mov dword [ebp - 0x238], esi
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetcwd]
pop ecx
pop ecx
test eax, eax
je 0x42315a
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, di
jne 0x423127
sub esi, ecx
sar esi, 1
inc esi
lea ecx, [esi + esi]
call fcn.00426940
push dword [ebp - 0x238]
mov edi, eax
push esi
push edi
mov dword [ebp - 0x234], edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], edi
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__get_wpgmptr]
mov esi, dword [ebp - 0x22c]
pop ecx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, di
jne 0x423177
sub esi, ecx
sar esi, 1
inc esi
lea ecx, [esi + esi]
call fcn.00426940
push dword [ebp - 0x22c]
mov dword [ebp - 0x244], eax
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
mov edi, 0x401230
mov edx, ebx
mov ecx, edi
push dword [ebx + 0x1c]
call fcn.00426970
pop ecx
lea esi, [eax + 1]
lea ecx, [esi + esi]
call fcn.00426940
push dword [ebx + 0x1c]
mov edx, esi
mov dword [ebp - 0x240], eax
push ebx
push edi
mov ecx, eax
call fcn.00427080
mov edx, dword [0x44b8fc]
add esp, 0xc
test edx, edx
je 0x423244
xor eax, eax
mov edi, 0x44c110
push ecx
mov ecx, edi
mov word [0x44c110], ax
call fcn.004229ba
mov dword [esp], 0x401184
mov edx, edi
push 0x400
mov ecx, 0x401190
call fcn.00423b89
mov esi, edi
xor edx, edx
pop ecx
pop ecx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x42321a
sub esi, ecx
sar esi, 1
inc esi
lea ecx, [esi + esi]
call fcn.00426940
push edi
push esi
push eax
mov dword [ebp - 0x23c], eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
mov edi, dword [ebx + 4]
xor eax, eax
mov esi, eax
mov eax, 0x400
mov dword [ebp - 0x22c], eax
jmp 0x42327e
test byte [edi], 0x20
jne 0x43ab49
call fcn.00426b40
add esi, eax
inc eax
cmp dword [ebp - 0x22c], eax
jb 0x43ab5b
mov eax, dword [ebp - 0x22c]
mov edi, dword [edi + 4]
test edi, edi
je 0x4232b4
mov ecx, edi
call fcn.0042355a
test al, al
je 0x423275
mov ecx, dword [edi + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x250]
jne 0x423293
sub ecx, edx
sar ecx, 1
add ecx, 2
add esi, ecx
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x423275
jmp 0x423258
cmp dword [0x44b0a8], 0
jne 0x4232c0
add esi, 4
lea ecx, [eax + eax]
add esi, 3
call fcn.00426940
lea ecx, [esi + esi]
mov dword [ebp - 0x22c], eax
call fcn.00426940
mov edi, eax
xor eax, eax
mov ecx, edi
mov word [edi], ax
jmp 0x423350
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x423396
mov ecx, ebx
call fcn.0042355a
mov ecx, dword [ebp - 0x230]
test al, al
je 0x4232e4
mov eax, ecx
mov edx, esi
sub eax, edi
sar eax, 1
push 0x401300
sub edx, eax
call fcn.00426e98
pop ecx
push dword [ebx + 0xc]
mov ecx, eax
mov edx, esi
sub ecx, edi
sar ecx, 1
sub edx, ecx
mov ecx, eax
call fcn.00426e98
mov edx, dword [ebx + 0x10]
pop ecx
mov ecx, eax
mov dword [ebp - 0x248], ecx
test edx, edx
jne 0x423358
mov eax, ecx
mov edx, esi
sub eax, edi
sar eax, 1
push 0x401340
sub edx, eax
call fcn.00426e98
pop ecx
mov ecx, eax
mov dword [ebp - 0x230], ecx
jmp 0x4232e4
sub ecx, edi
mov eax, esi
sar ecx, 1
sub eax, ecx
test byte [ebx], 0x20
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x230], eax
jne 0x43ab66
call fcn.00426ed0
push dword [ebp - 0x22c]
mov edx, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x248]
call fcn.00426e98
pop ecx
mov ecx, eax
jmp 0x423339
cmp dword [0x44b0a8], 0
jne 0x4233ee
mov eax, dword [ebp - 0x24c]
xor edx, edx
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 0x14]
sub eax, edx
je 0x43abb4
sub eax, 1
jne 0x43ab9a
mov eax, 0x401198
push eax
mov eax, ecx
mov edx, esi
sub eax, edi
sar eax, 1
sub edx, eax
call fcn.00426e98
mov ecx, eax
mov dword [esp], 0x401340
sub ecx, edi
mov edx, esi
sar ecx, 1
sub edx, ecx
mov ecx, eax
call fcn.00426e98
pop ecx
mov ecx, eax
mov eax, ecx
sub eax, edi
sar eax, 1
sub esi, eax
push 0x4011a0
mov edx, esi
call fcn.00426e98
cmp dword [0x44de20], 0
mov esi, dword [ebp - 0x234]
pop ecx
jne 0x43abbe
mov ebx, dword [ebp - 0x23c]
cmp dword [0x44e674], 0
jne 0x4234f3
call fcn.0042c0c5
test al, al
je 0x43ac47
mov ecx, edi
call fcn.0042c06c
test al, al
je 0x43ac47
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x250]
jne 0x42344a
sub ecx, edx
sar ecx, 1
push 0x44d578
lea eax, [ecx + 1]
push eax
push 0x4011a8
lea eax, [ebp - 0x228]
push 0x10e
push eax
call fcn.0042aff8
add esp, 0x14
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
je 0x42349f
mov eax, dword [ebp - 0x234]
push eax
push 0x4011b4
call esi
test eax, eax
je 0x43ac5e
push dword [ebp - 0x244]
push 0x4011c4
call esi
test eax, eax
je 0x43ac5e
push dword [ebp - 0x240]
push 0x4011d4
call esi
test eax, eax
je 0x43ac5e
test ebx, ebx
je 0x4234dd
push ebx
push 0x4011e4
call esi
test eax, eax
je 0x43ac5e
lea eax, [ebp - 0x228]
push eax
push 0x4011f4
call esi
test eax, eax
je 0x43ac5e
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push edi
call esi
pop ecx
test ebx, ebx
je 0x423505
push ebx
call esi
pop ecx
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x423513
push eax
call esi
pop ecx
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x423521
push eax
call esi
pop ecx
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x42352f
push eax
call esi
pop ecx
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x42353d
push eax
call esi
pop ecx
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x42354b
push eax
call esi
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e434
leave
ret
push dword [ebx + 0x1c]
mov edx, ebx
call fcn.00426970
pop ecx
add esi, eax
jmp 0x423275
mov dword [ebp - 0x22c], eax
jmp 0x42327b
mov eax, dword [ebp - 0x24c]
push dword [eax + 0x1c]
push eax
push edx
mov edx, 0x400
call fcn.00427080
mov edx, dword [ebp - 0x22c]
add esp, 0xc
mov ecx, dword [ebp - 0x238]
call fcn.00426ed0
push dword [ebp - 0x238]
jmp 0x423380
sub eax, 1
je 0x4233be
sub eax, 1
je 0x4233be
sub eax, 1
jmp 0x4233be
mov eax, 0x4206b0
jmp 0x4233c3
mov ebx, 0x4206b8
test esi, esi
je 0x43abd8
push esi
push 0x4011b4
push ebx
push 2
call fcn.0042405d
add esp, 0x10
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x43abf3
push eax
push 0x4011c4
push ebx
push 2
call fcn.0042405d
add esp, 0x10
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x43ac0e
push eax
push 0x4011d4
push ebx
push 2
call fcn.0042405d
add esp, 0x10
mov ebx, dword [ebp - 0x23c]
test ebx, ebx
je 0x43ac2d
push ebx
push 0x4011e4
push 0x4206b8
push 2
call fcn.0042405d
add esp, 0x10
push edi
push 0x4011f4
push 0x4206b8
push 2
call fcn.0042405d
add esp, 0x10
jmp 0x42341c
push dword [ebp - 0x254]
push 0x1f72
call fcn.00422658
pop ecx
pop ecx
jmp 0x423445
push dword [ebp - 0x254]
push 0x1f5d
call fcn.00422658
pop ecx
pop ecx
jmp 0x4234f3