Function at 0x4b21f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x1f8
cmp dword [0x4f2030], 0
push ebx
push esi
push edi
push ebp
je 0x4b2213
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1f8
ret
lea eax, [esp + 0x118]
push 6
mov dword [0x4f2030], 1
push 0x1aec
push 0x50
push eax
call fcn.004b14d0
lea eax, [esp + 0x1c8]
add esp, 0x10
push 7
push 0x1aec
push 0x50
push eax
call fcn.004b14d0
lea eax, [esp + 0x1c8]
lea ecx, [esp + 0x128]
lea edx, [esp + 0x178]
add esp, 0x10
push 0x4e9128
push eax
push ecx
push 0x50
push edx
call fcn.0046dad0
lea ecx, [esp + 0x17c]
add esp, 0x14
push ecx
call dword [0x4f6ce8]
cmp byte [esp + 0x168], 0x59
je 0x4b22b9
cmp byte [esp + 0x168], 0x54
je 0x4b22b9
cmp byte [esp + 0x168], 0x31
je 0x4b22b9
xor eax, eax
pop ebp
mov dword [0x4f2030], 0
pop edi
pop esi
pop ebx
add esp, 0x1f8
ret
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [0x4f69d4]
mov esi, eax
test esi, esi
jle 0x4b230e
cmp dword [0x4eb22c], 0
jne 0x4b22e6
cmp esi, 1
jle 0x4b22e2
lea eax, [esi - 1]
jmp 0x4b22fc
xor eax, eax
jmp 0x4b22fc
lea eax, [esp + esi + 0x14]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [0x4f6d28]
lea ecx, [esp + 0x14]
sub eax, ecx
cmp byte [esp + eax + 0x14], 0x5c
je 0x4b230e
mov byte [esp + esi + 0x14], 0x5c
mov byte [esp + esi + 0x15], 0
inc esi
push 1
mov eax, 0x104
push 0x30
sub eax, esi
lea ecx, [esp + esi + 0x1c]
push eax
push ecx
call fcn.004b14d0
add esp, 0x10
push 1
call dword [0x4f6a70]
mov word [esp + 0x12], ax
push 2
lea ecx, [esp + 0x18]
push ecx
call dword [0x4f6994]
cmp eax, 0xffffffff
mov esi, eax
jne 0x4b2360
lea eax, [esp + 0x14]
push 0
push eax
call dword [0x4f6998]
cmp eax, 0xffffffff
mov esi, eax
je 0x4b257f
push 2
push 0
push esi
call dword [0x4f6990]
mov edi, dword [esp + 0x20c]
push str.trace
push edi
call dword [0x4f6a9c]
cmp eax, 1
sbb ebp, ebp
neg ebp
test ebp, ebp
jne 0x4b23ae
lea eax, [esp + 0x14]
push edi
push str.__.20s:
push eax
call dword [0x4f6bf4]
add esp, 0xc
mov edi, dword [0x4f69a0]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call edi
jmp 0x4b23b4
mov edi, dword [0x4f69a0]
mov eax, dword [esp + 0x210]
mov ebx, dword [0x4f6960]
push eax
call ebx
mov ecx, dword [esp + 0x210]
push eax
push ecx
push esi
call edi
push 2
push 0x4e96cc
push esi
call edi
test ebp, ebp
jne 0x4b2578
lea eax, [esp + 0x118]
push eax
call fcn.004dc6c0
lea eax, [esp + 0x1bc]
add esp, 4
push eax
call fcn.004dc630
lea eax, [esp + 0x1bc]
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x18]
add esp, 4
push eax
push ecx
push str._s__s_r_n
push edx
call dword [0x4f6bf4]
lea ecx, [esp + 0x24]
add esp, 0x10
push eax
push ecx
push esi
call edi
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov edx, dword [0x4f0ba8]
push edx
call dword [0x4f69ec]
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
call edi
lea ecx, [esp + 0x118]
push 1
push 0x50
push ecx
call fcn.004befb0
lea ecx, [esp + 0x124]
add esp, 0xc
push ecx
call ebx
lea ecx, [esp + 0x118]
lea edx, [esp + 0x14]
push ecx
push str.__s_r_n
push edx
call dword [0x4f6bf4]
lea ecx, [esp + 0x20]
add esp, 0xc
push eax
push ecx
push esi
call edi
mov ebp, dword [0x4f6a98]
call ebp
xor ecx, ecx
mov cl, ah
push ecx
xor ecx, ecx
mov cl, al
push ecx
push 0x16
call dword [0x4f6cf8]
test eax, eax
mov eax, str.Debug
jne 0x4b24b8
mov eax, 0x4e9128
push eax
push str._sWindows__d._d_r_n
lea eax, [esp + 0x24]
push eax
call dword [0x4f6bf4]
add esp, 0x14
push eax
lea eax, [esp + 0x18]
push eax
push esi
call edi
cmp word [0x4f0a78], 0
je 0x4b2527
cmp dword [0x4f0a8a], 0
je 0x4b2527
lea eax, [esp + 0x14]
push 2
push 0x104
mov ecx, dword [0x4f0a70]
push eax
push ecx
call fcn.00465a80
add esp, 0x10
push 8
push str.Course:
push esi
call edi
lea ecx, [esp + 0x14]
push ecx
call ebx
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
call edi
push 2
push 0x4e96cc
push esi
call edi
cmp word [0x4e9c44], 0
je 0x4b256e
lea eax, [esp + 0x14]
push 0x104
push eax
mov ecx, dword [0x4f0a70]
push ecx
call fcn.00465830
add esp, 0xc
push 9
push str.Records:
push esi
call edi
lea ecx, [esp + 0x14]
push ecx
call ebx
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
call edi
push 2
push 0x4e96cc
push esi
call edi
push 2
push 0x4e96cc
push esi
call edi
push esi
call dword [0x4f69a4]
mov eax, dword [esp + 0x12]
and eax, 0xffff
push eax
call dword [0x4f6a70]
mov eax, 1
pop ebp
mov dword [0x4f2030], 0
pop edi
pop esi
pop ebx
add esp, 0x1f8
ret