Function at 0x521e85
Capabilities:
Resolve path using msvcrt

Disassembly:
push 0x7c
mov eax, 0x48f9e6
call fcn.0047ec24
mov edi, edx
mov dword [ebp - 0x78], edi
mov ebx, ecx
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__get_wpgmptr]
pop ecx
test eax, eax
je 0x521eae
xor ecx, ecx
call fcn.0047dc27
mov ecx, dword [ebp - 0x74]
call fcn.0045b292
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x74], eax
call fcn.0043c1e9
push 0xffffffffffffffff
lea eax, [ebp - 0x80]
xor esi, esi
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x58]
push eax
mov dword [ebp - 0x80], 0x409240
mov dword [ebp - 0x7c], 5
call fcn.00521803
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x521fdc
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x401368
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x14], 3
call fcn.00521803
cmp eax, 0xffffffff
je 0x521fdc
push 5
pop edi
push edi
push 0x40924c
push 3
push eax
lea ecx, [ebp - 0x58]
call fcn.0052249f
push 0xb
pop eax
push 7
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], eax
pop eax
mov dword [ebp - 0x14], edi
mov edi, esi
mov dword [ebp - 0x28], 0x409258
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x20], 0x409268
mov dword [ebp - 0x18], 0x409280
mov dword [ebp - 0x40], 0x40928c
mov dword [ebp - 0x38], 0x4092a4
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0x4092b4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
jb 0x521f7b
mov ecx, dword [ebp - 0x58]
push dword [ebp + edi - 0x24]
mov edx, dword [ebp - 0x48]
push dword [ebp + edi - 0x28]
push dword [ebp - 0x7c]
call fcn.00521672
cmp eax, 0xffffffff
je 0x521fd1
push dword [ebp + edi - 0x3c]
lea ecx, [ebp - 0x58]
push dword [ebp + edi - 0x40]
push dword [ebp + edi - 0x24]
push eax
call fcn.0052249f
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
jb 0x521fb4
mov eax, dword [ebp - 0x58]
push eax
push dword [ebp - 0x78]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
mov ecx, ebx
call fcn.0052218d
test al, al
jne 0x52208f
add edi, 8
cmp edi, 0x18
jb 0x521f6f
mov edi, dword [ebp - 0x78]
push dword [ebp - 0x74]
lea ecx, [ebp - 0x70]
call fcn.0043c1e9
mov byte [ebp - 4], 1
push 9
pop eax
mov dword [ebp - 0x88], 0x4092c4
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 0x4092d8
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x20], 0x4092ec
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x409300
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x88]
push 0xffffffffffffffff
add eax, esi
lea ecx, [ebp - 0x70]
push eax
call fcn.00521803
cmp eax, 0xffffffff
je 0x52206f
push dword [ebp + esi - 0x1c]
lea ecx, [ebp - 0x70]
push dword [ebp + esi - 0x20]
push dword [ebp + esi - 0x84]
push eax
call fcn.0052249f
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
jb 0x522058
mov eax, dword [ebp - 0x70]
push eax
push edi
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
mov ecx, ebx
call fcn.0052218d
test al, al
jne 0x52209b
add esi, 8
cmp esi, 0x10
jb 0x52201c
lea ecx, [ebp - 0x70]
call fcn.00450d98
lea ecx, [ebp - 0x58]
call fcn.00450d98
xor al, al
call fcn.0047ebd3
ret
lea ecx, [ebp - 0x58]
call fcn.00450d98
mov al, 1
jmp 0x522089
lea ecx, [ebp - 0x70]
call fcn.00450d98
jmp 0x52208f