Function at 0x403b1b
Capabilities:
Resolve path using msvcrt

Disassembly:
push 0x43c
mov eax, 0x405c51
call fcn.00405b9c
mov edi, ecx
mov ecx, 0x134
call fcn.00402bb0
mov edx, eax
xor ebx, ebx
mov dword [ebp - 0x428], edx
test edx, edx
je 0x403b89
lea ecx, [edx + 0x120]
mov word [edx + 0x10], bx
lea eax, [edx + 0x20]
mov dword [edx + 0x14], ebx
mov esi, pe_nt_image_headers32
mov dword [edx + 0x18], ebx
mov dword [edx + 0x1c], ecx
mov dword [edx + 0xc], 0x1000
mov dword [ecx], 0x4017b4
mov dword [ecx + 4], eax
mov dword [ecx + 8], esi
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], esi
mov dword [edx + 0x12c], ebx
or dword [edx + 0x130], 0xffffffff
jmp 0x403b8b
mov edx, ebx
push 4
mov ecx, edx
mov dword [0x4064dc], edx
call fcn.00401de2
mov ecx, 0x434
call fcn.00402bb0
mov esi, eax
mov dword [ebp - 0x428], esi
test esi, esi
je 0x403bc6
lea ecx, [esi + 4]
mov dword [esi], 0xf1
call fcn.004031e2
mov dword [ecx + 0x42c], ebx
jmp 0x403bc8
mov esi, ebx
push 0x104
lea eax, [ebp - 0x420]
mov dword [0x4064e8], esi
push edi
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
add esp, 0xc
test eax, eax
jne 0x403bea
mov eax, edi
mov ecx, eax
call fcn.00402c4a
mov edi, eax
mov ecx, edi
call fcn.00402bd0
mov edx, eax
mov dword [ebp - 0x430], eax
lea eax, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x403c05
mov esi, dword [0x4064e8]
sub edx, eax
push ecx
push 8
mov dword [ebp - 0x438], ebx
lea eax, [edx + 1]
mov dword [ebp - 0x42c], eax
lea ecx, [esi + 4]
add eax, 6
mov word [ebp - 0x43c], ax
mov eax, 0x1101
mov word [ebp - 0x43a], ax
lea eax, [ebp - 0x43c]
push eax
call fcn.00402014
test eax, eax
je 0x403c56
add dword [esi + 0x430], 8
mov ecx, dword [0x4064e8]
push dword [ebp - 0x42c]
push dword [ebp - 0x430]
lea ecx, [ecx + 4]
call fcn.00401f14
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call edi
mov esi, dword [0x4064e8]
push 0x2f
push 0x406020
lea ecx, [esi + 4]
call fcn.00402014
test eax, eax
je 0x403c99
add dword [esi + 0x430], 0x2f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p__wpgmptr]
mov ecx, dword [eax]
call fcn.00402c4a
mov ecx, eax
mov dword [ebp - 0x448], eax
call fcn.00402bd0
mov edx, eax
mov dword [ebp - 0x444], eax
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x403cbe
sub edx, esi
lea eax, [ebp - 0x218]
push 0x104
push eax
lea esi, [edx + 1]
mov dword [ebp - 0x440], esi
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetcwd]
pop ecx
pop ecx
lea ecx, [ebp - 0x218]
call fcn.00402c4a
mov ecx, eax
mov dword [ebp - 0x428], eax
call fcn.00402bd0
mov edx, eax
mov dword [ebp - 0x42c], eax
lea eax, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x403d07
sub edx, eax
mov dword [ebp - 0x43a], 0x113d
add esi, 0xc
xor ecx, ecx
push ecx
push 5
lea eax, [edx + 1]
mov dword [ebp - 0x430], eax
add eax, esi
mov esi, dword [0x4064e8]
mov word [ebp - 0x43c], ax
lea eax, [ebp - 0x43c]
push eax
lea ecx, [esi + 4]
call fcn.00402014
test eax, eax
je 0x403d54
add dword [esi + 0x430], 5
mov esi, dword [0x4064e8]
push ecx
push 4
push 0x4017c0
lea ecx, [esi + 4]
call fcn.00402014
test eax, eax
je 0x403d75
add dword [esi + 0x430], 4
push dword [ebp - 0x430]
mov ecx, dword [0x4064e8]
push dword [ebp - 0x42c]
add ecx, 4
call fcn.00401f14
mov esi, dword [0x4064e8]
push ecx
push 4
push 0x4017b0
lea ecx, [esi + 4]
call fcn.00402014
test eax, eax
je 0x403db0
add dword [esi + 0x430], 4
mov ecx, dword [0x4064e8]
push dword [ebp - 0x440]
push dword [ebp - 0x444]
lea ecx, [ecx + 4]
call fcn.00401f14
mov ecx, dword [0x4064e8]
lea eax, [ebp - 0x424]
push eax
mov byte [ebp - 0x424], bl
lea ecx, [ecx + 4]
call fcn.00401e0d
push dword [ebp - 0x448]
call edi
push dword [ebp - 0x428]
call edi
pop ecx
pop ecx
mov ecx, 0x864
call fcn.00402bb0
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x403e17
mov ecx, eax
call fcn.00403114
jmp 0x403e19
mov eax, ebx
or dword [ebp - 4], 0xffffffff
mov ecx, 0x438
mov dword [0x406524], eax
call fcn.00402bb0
mov esi, eax
mov dword [ebp - 0x428], esi
test esi, esi
je 0x403e59
lea ecx, [esi + 4]
mov dword [esi], 0xf4
call fcn.004031e2
mov eax, dword [0x406524]
mov dword [ecx + 0x42c], ebx
mov dword [esi + 0x434], eax
jmp 0x403e5b
mov esi, ebx
mov dword [0x4064ec], esi
call fcn.00405b5a
ret