Function at 0x4414a2
Capabilities:
Resolve path using msvcrt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x894
mov eax, dword [0x449014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x894], ecx
mov ebx, edx
push edi
lea ecx, [ebp - 0x889]
call fcn.004221b2
push 0x4200a0
push 2
call fcn.0042405d
mov esi, 0x400
lea eax, [ebp - 0x804]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetcwd]
add esp, 0x10
test eax, eax
jne 0x441507
push 0x4200ac
lea eax, [ebp - 0x804]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
push 0x4200e0
push 2
call fcn.0042405d
push 0x4200f4
push 2
call fcn.0042405d
and dword [ebp - 0x888], 0
lea eax, [ebp - 0x888]
mov edi, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
push 0x4015a4
push 0
push eax
call edi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x20
cmp dword [ebp - 0x888], 0
je 0x441572
push dword [ebp - 0x888]
push 0x41fa80
push 2
call fcn.0042405d
push dword [ebp - 0x888]
call esi
add esp, 0x10
push 0x420114
push 2
call fcn.0042405d
and dword [ebp - 0x888], 0
lea eax, [ebp - 0x888]
push 0x42012c
push 0
push eax
call edi
add esp, 0x14
cmp dword [ebp - 0x888], 0
je 0x4415be
push dword [ebp - 0x888]
push 0x41fa80
push 2
call fcn.0042405d
push dword [ebp - 0x888]
call esi
add esp, 0x10
push 0x420134
push 2
call fcn.0042405d
and dword [ebp - 0x888], 0
lea eax, [ebp - 0x888]
push 0x401514
push 0
push eax
call edi
add esp, 0x14
cmp dword [ebp - 0x888], 0
je 0x44160a
push dword [ebp - 0x888]
push 0x41fa80
push 2
call fcn.0042405d
push dword [ebp - 0x888]
call esi
add esp, 0x10
push 0x42014c
push 2
call fcn.0042405d
and dword [ebp - 0x888], 0
lea eax, [ebp - 0x888]
push 0x401508
push 0
push eax
call edi
add esp, 0x14
cmp dword [ebp - 0x888], 0
je 0x441656
push dword [ebp - 0x888]
push 0x41fa80
push 2
call fcn.0042405d
push dword [ebp - 0x888]
call esi
add esp, 0x10
push 0x420168
push 2
call fcn.0042405d
and dword [ebp - 0x888], 0
lea eax, [ebp - 0x888]
push 0x41fa1c
push 0
push eax
call edi
add esp, 0x14
cmp dword [ebp - 0x888], 0
je 0x4416a2
push dword [ebp - 0x888]
push 0x41fa80
push 2
call fcn.0042405d
push dword [ebp - 0x888]
call esi
add esp, 0x10
and dword [ebp - 0x890], 0
lea eax, [ebp - 0x890]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__get_wpgmptr]
push dword [ebp - 0x890]
push 0x420184
push 2
call fcn.0042405d
add esp, 0x10
xor edi, edi
xor esi, esi
test ebx, ebx
jle 0x441730
mov eax, dword [ebp - 0x894]
mov eax, dword [eax + edi*4]
cmp word [eax], 0x40
jne 0x44171b
cmp esi, 0x20
jge 0x44170b
push 0x420190
push 2
call fcn.0042405d
mov eax, dword [ebp - 0x894]
pop ecx
pop ecx
mov eax, dword [eax + edi*4]
add eax, 2
mov dword [ebp + esi*4 - 0x884], eax
inc esi
jmp 0x44172b
push 0x4201a0
push 2
call fcn.0042405d
pop ecx
pop ecx
jmp 0x44172b
push eax
push 0x4201e8
push 2
call fcn.0042405d
add esp, 0xc
inc edi
cmp edi, ebx
jl 0x4416d3
mov ebx, 0x401170
push ebx
push 2
call fcn.0042405d
pop ecx
xor edi, edi
pop ecx
test esi, esi
jle 0x441775
mov ecx, dword [ebp + edi*4 - 0x884]
xor edx, edx
push 0
inc edx
call fcn.00428574
mov dword [esp], 0x4201f0
push 2
call fcn.0042405d
inc edi
pop ecx
pop ecx
cmp edi, esi
jl 0x441745
push ebx
push 2
call fcn.0042405d
pop ecx
pop ecx
cmp byte [ebp - 0x889], 0
pop edi
pop esi
pop ebx
je 0x44178d
push dword [0x44d1b0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e434
leave
ret