Function at 0x440f02
Capabilities:
Resolve path using msvcrt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x894
mov eax, dword [0x448014]
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.00421cc2
push 0x41fbe0
push 2
call fcn.004258b5
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 0x440f67
push 0x41fbec
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 0x41fc20
push 2
call fcn.004258b5
push 0x41fc34
push 2
call fcn.004258b5
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 0x4015f0
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 0x440fd2
push dword [ebp - 0x888]
push 0x41f5c0
push 2
call fcn.004258b5
push dword [ebp - 0x888]
call esi
add esp, 0x10
push 0x41fc54
push 2
call fcn.004258b5
and dword [ebp - 0x888], 0
lea eax, [ebp - 0x888]
push 0x41fc6c
push 0
push eax
call edi
add esp, 0x14
cmp dword [ebp - 0x888], 0
je 0x44101e
push dword [ebp - 0x888]
push 0x41f5c0
push 2
call fcn.004258b5
push dword [ebp - 0x888]
call esi
add esp, 0x10
push 0x41fc74
push 2
call fcn.004258b5
and dword [ebp - 0x888], 0
lea eax, [ebp - 0x888]
push 0x401560
push 0
push eax
call edi
add esp, 0x14
cmp dword [ebp - 0x888], 0
je 0x44106a
push dword [ebp - 0x888]
push 0x41f5c0
push 2
call fcn.004258b5
push dword [ebp - 0x888]
call esi
add esp, 0x10
push 0x41fc8c
push 2
call fcn.004258b5
and dword [ebp - 0x888], 0
lea eax, [ebp - 0x888]
push 0x401554
push 0
push eax
call edi
add esp, 0x14
cmp dword [ebp - 0x888], 0
je 0x4410b6
push dword [ebp - 0x888]
push 0x41f5c0
push 2
call fcn.004258b5
push dword [ebp - 0x888]
call esi
add esp, 0x10
push 0x41fca8
push 2
call fcn.004258b5
and dword [ebp - 0x888], 0
lea eax, [ebp - 0x888]
push 0x41f55c
push 0
push eax
call edi
add esp, 0x14
cmp dword [ebp - 0x888], 0
je 0x441102
push dword [ebp - 0x888]
push 0x41f5c0
push 2
call fcn.004258b5
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 0x41fcc4
push 2
call fcn.004258b5
add esp, 0x10
xor edi, edi
xor esi, esi
test ebx, ebx
jle 0x441190
mov eax, dword [ebp - 0x894]
mov eax, dword [eax + edi*4]
cmp word [eax], 0x40
jne 0x44117b
cmp esi, 0x20
jge 0x44116b
push 0x41fcd0
push 2
call fcn.004258b5
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 0x44118b
push 0x41fce0
push 2
call fcn.004258b5
pop ecx
pop ecx
jmp 0x44118b
push eax
push 0x41fd28
push 2
call fcn.004258b5
add esp, 0xc
inc edi
cmp edi, ebx
jl 0x441133
mov ebx, 0x401170
push ebx
push 2
call fcn.004258b5
pop ecx
xor edi, edi
pop ecx
test esi, esi
jle 0x4411d5
mov ecx, dword [ebp + edi*4 - 0x884]
xor edx, edx
push 0
inc edx
call fcn.00428277
mov dword [esp], 0x41fd30
push 2
call fcn.004258b5
inc edi
pop ecx
pop ecx
cmp edi, esi
jl 0x4411a5
push ebx
push 2
call fcn.004258b5
pop ecx
pop ecx
cmp byte [ebp - 0x889], 0
pop edi
pop esi
pop ebx
je 0x4411ed
push dword [0x44c1a0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e014
leave
ret