Function at 0x525a78
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x525d0c
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x525c9d
cmp byte [ebx + 0x30], 0
jne 0x525cf1
cmp dword [ebx + 0x38], 0
je 0x525cf1
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x38]
call fcn.00409b34
cmp dword [ebp - 4], 0
jne 0x525b0f
lea eax, [ebp - 4]
mov edx, 0x12c
call fcn.00404af0
mov eax, dword [ebp - 4]
call fcn.00404964
push eax
push 0x12c
call sub.kernel32.dll_GetCurrentDirectoryA_1
mov eax, dword [ebp - 4]
call fcn.00404964
call fcn.00409d8c
mov edx, eax
lea eax, [ebp - 4]
call fcn.00404af0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040e170
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x38]
mov ecx, dword [ebx + 0x38]
call fcn.004047b0
mov eax, dword [ebx + 0x38]
call fcn.00409864
test al, al
je 0x525c1f
cmp byte [ebx + 0x54], 0
je 0x525b3b
mov byte [ebx + 0x55], 1
mov edx, 0x20
mov eax, dword [ebx + 0x38]
call fcn.004096d4
mov dword [ebx + 0x4c], eax
jmp 0x525b4f
mov byte [ebx + 0x55], 0
mov edx, 2
mov eax, dword [ebx + 0x38]
call fcn.004096d4
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x4c]
test eax, eax
jbe 0x525b5b
cmp eax, 0xffffffff
jne 0x525b82
mov byte [ebx + 0x55], 1
xor edx, edx
mov eax, dword [ebx + 0x38]
call fcn.004096d4
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x4c]
test eax, eax
jbe 0x525b78
cmp eax, 0xffffffff
jne 0x525b82
xor eax, eax
mov dword [ebx + 0x4c], eax
jmp 0x525cf1
cmp dword [ebx + 0x34], 0
je 0x525bde
mov eax, dword [ebx + 0x34]
call fcn.00404764
mov esi, eax
mov eax, esi
call fcn.00402754
mov edi, eax
mov edx, edi
mov ecx, esi
mov eax, dword [ebx + 0x4c]
call fcn.00409758
mov eax, dword [ebx + 0x34]
call fcn.00404964
mov ecx, esi
mov edx, edi
call fcn.00408ecc
test al, al
jne 0x525bd5
mov eax, dword [ebx + 0x4c]
call fcn.004097f4
xor eax, eax
mov dword [ebx + 0x4c], eax
mov eax, edi
call fcn.00402774
jmp 0x525cf1
mov eax, edi
call fcn.00402774
jmp 0x525be0
xor esi, esi
lea edx, [ebx + 0x40]
mov ecx, 4
mov eax, dword [ebx + 0x4c]
call fcn.00409758
lea eax, [esi + 4]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x44], eax
mov ecx, 2
xor edx, edx
mov eax, dword [ebx + 0x4c]
call fcn.004097b0
mov dword [ebx + 0x3c], eax
xor ecx, ecx
mov edx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x4c]
call fcn.004097b0
jmp 0x525c97
mov byte [ebx + 0x55], 0
mov eax, dword [ebp - 4]
call fcn.004af3d0
mov eax, dword [ebx + 0x38]
call fcn.0040972c
mov esi, eax
mov dword [ebx + 0x4c], esi
test esi, esi
ja 0x525c46
xor eax, eax
mov dword [ebx + 0x4c], eax
jmp 0x525cf1
cmp dword [ebx + 0x34], 0
je 0x525c6c
mov eax, dword [ebx + 0x34]
call fcn.00404764
mov esi, eax
mov eax, dword [ebx + 0x34]
call fcn.00404964
mov edx, eax
mov ecx, esi
mov eax, dword [ebx + 0x4c]
call fcn.00409784
jmp 0x525c6e
xor esi, esi
xor eax, eax
mov dword [ebx + 0x40], eax
lea edx, [ebx + 0x40]
mov ecx, 4
mov eax, dword [ebx + 0x4c]
call fcn.00409784
lea eax, [esi + 4]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x50]
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x30], 1
jmp 0x525cf1
mov byte [ebx + 0x55], 0
cmp byte [ebx + 0x30], 0
je 0x525cf1
mov edx, dword [ebx + 0x50]
sub edx, 4
xor ecx, ecx
mov eax, dword [ebx + 0x4c]
call fcn.004097b0
lea edx, [ebx + 0x40]
mov ecx, 4
mov eax, dword [ebx + 0x4c]
call fcn.00409784
mov eax, dword [ebx + 0x4c]
call fcn.004097f4
mov byte [ebx + 0x30], 0
xor eax, eax
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x4c], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x525d13
lea eax, [ebp - 8]
mov edx, 2
call fcn.004044b8
ret