Function at 0x5250e2
Capabilities:
Resolve path using msvcrt

Disassembly:
push 0x870
mov eax, 0x48fb84
call fcn.0047ec24
mov esi, ecx
mov dword [ebp - 0x84c], esi
mov ebx, 0x104
lea eax, [ebp - 0x420]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetcwd]
pop ecx
pop ecx
test eax, eax
je 0x5254c4
lea ecx, [ebp - 0x420]
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x525121
sub ecx, edx
sar ecx, 1
push ebx
push dword [0x5a3054]
mov ebx, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x848], ebx
mov dword [ebp - 0x83c], eax
lea eax, [ebp - 0x830]
push eax
call ebx
add esp, 0xc
test eax, eax
je 0x5254c4
push edi
push 2
push 0x41d110
mov ecx, 0x5a16d8
call fcn.0045aed3
lea eax, [ebp - 0x840]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__get_wpgmptr]
pop ecx
test eax, eax
jne 0x5254c4
mov ecx, dword [ebp - 0x840]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x525195
sub ecx, edx
mov dword [ebp - 0x850], 0x5a19e0
sar ecx, 1
mov dword [ebp - 0x860], 0x1000
lea edi, [ecx*2 + 4]
xor ecx, ecx
sub edi, dword [0x5a16d8]
add edi, dword [0x5a16dc]
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x86c], ecx
mov dword [ebp - 0x868], ecx
mov dword [ebp - 0x864], ecx
mov word [ebp - 0x85c], cx
mov dword [ebp - 0x858], ecx
mov dword [ebp - 0x854], ecx
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x888]
xor esi, esi
mov dword [ebp - 0x87c], fcn.00435044
mov dword [ebp - 0x878], 0x478d10
mov dword [ebp - 0x874], ecx
mov dword [ebp - 0x870], eax
lea eax, [ebp - 0x87c]
push eax
call fcn.00435044
test al, al
je 0x52529e
mov eax, dword [ebp - 0x874]
test byte [eax + 0x38], 4
jne 0x525223
cmp eax, dword [0x5a2fa0]
je 0x525223
push 0x104
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call ebx
lea ecx, [ebp - 0x218]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x525263
sub ecx, edx
sar ecx, 1
push esi
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x86c]
call fcn.0045aed3
push esi
push 2
push 0x41d10c
lea ecx, [ebp - 0x86c]
call fcn.0045aed3
jmp 0x525223
push esi
push 2
push 0x41d110
lea ecx, [ebp - 0x86c]
call fcn.0045aed3
mov eax, dword [ebp - 0x86c]
mov ebx, dword [ebp - 0x868]
mov esi, dword [ebp - 0x83c]
sub ebx, eax
mov dword [ebp - 0x844], eax
add esi, 0x18
lea eax, [ebx + edi]
add esi, eax
mov ecx, esi
call fcn.0043d6d0
mov dword [ebp - 0x838], eax
mov dword [eax], esi
mov esi, eax
mov eax, dword [ebp - 0x83c]
mov dword [esi + 4], 2
lea ecx, [eax + 0x18]
mov dword [esi + 8], 0xc
shr ecx, 1
mov dword [esi + 0xc], ecx
lea ecx, [eax + 0x18]
add ecx, edi
shr eax, 1
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
shr ecx, 1
mov dword [esi + 0x14], ecx
lea ecx, [ebp - 0x420]
push ecx
push eax
lea eax, [esi + 0x18]
push eax
call edi
mov eax, dword [ebp - 0x834]
shr eax, 1
push 0x41b680
push eax
mov dword [ebp - 0x834], eax
mov eax, dword [esi + 0xc]
lea eax, [esi + eax*2]
push eax
call edi
mov eax, dword [esi + 0xc]
push dword [ebp - 0x840]
push dword [ebp - 0x834]
lea eax, [esi + eax*2]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push eax
call esi
mov ecx, dword [ebp - 0x838]
push 0x41b680
push dword [ebp - 0x834]
mov eax, dword [ecx + 0xc]
lea eax, [ecx + eax*2]
push eax
call esi
mov ecx, dword [ebp - 0x838]
push dword [0x5a16d8]
push dword [ebp - 0x834]
mov eax, dword [ecx + 0xc]
lea eax, [ecx + eax*2]
push eax
call esi
mov esi, dword [ebp - 0x838]
push dword [ebp - 0x844]
shr ebx, 1
push ebx
mov eax, dword [esi + 0x14]
lea eax, [esi + eax*2]
push eax
call edi
mov eax, dword [esi + 0xc]
add esp, 0x48
lea eax, [esi + eax*2]
push 0x402e24
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x5253c8
xor ebx, ebx
mov ecx, ebx
jmp 0x5253d8
mov eax, dword [esi + 0xc]
add eax, eax
sub ecx, eax
sub ecx, esi
sar ecx, 1
add ecx, 4
xor ebx, ebx
push 0x104
mov dword [esi + 0x10], ecx
lea eax, [ebp - 0x628]
push dword [0x5a4f04]
push eax
call dword [ebp - 0x848]
add esp, 0xc
test eax, eax
jne 0x52540b
push dword [0x5a4f04]
push 0x450
push ebx
call fcn.0047dc0b
call dword [sym.imp.pgodb140.dll_public:_static_class_PogoDbInterface____stdcall_PogoDbUtil::NewPgdObject_void_]
mov edi, dword [ebp - 0x84c]
mov dword [0x5b3710], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
mov ecx, dword [edi + 0x14c]
shr ecx, 6
and ecx, 1
push ecx
push 7
lea ecx, [ebp - 0x628]
push ecx
mov ecx, eax
call edx
mov ecx, dword [0x5b3710]
test eax, eax
mov eax, dword [ecx]
jne 0x525462
call dword [eax]
push eax
call dword [sym.imp.pgodb140.dll_public:_static_unsigned_short_int_const____stdcall_PogoDbUtil::GetErrorText_enum_POGODB_ERROR_]
push eax
push dword [0x5a4f04]
push 0x4f1
push ebx
call fcn.0047dc0b
push esi
call dword [eax + 0x58]
test eax, eax
jne 0x525474
mov ecx, dword [0x5b3710]
mov eax, dword [ecx]
jmp 0x525447
push esi
call dword [sym.imp.tbbmalloc.dll_scalable_free]
pop ecx
mov ecx, edi
call fcn.00524efb
mov ecx, dword [0x5b3710]
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
je 0x52546a
push dword [0x5b3710]
call dword [sym.imp.pgodb140.dll_public:_static_class_PogoDbInterface____stdcall_PogoDbUtil::DeletePgdObject_class_PogoDbInterface__]
mov dword [0x5b3710], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x844], 0
je 0x5254be
lea ecx, [ebp - 0x86c]
call fcn.004706b3
call fcn.0047ebd3
ret
xor ecx, ecx
call fcn.0047dc27
int3