Function at 0x56d690
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61e29a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov dword [ebp - 0x88], 0
lea eax, [ebp - 0x91]
mov dword [ebp - 0x90], eax
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.004028c0
mov dword [ebp - 4], 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x56d899
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x38], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005df5a2
add esp, 4
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x9c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jbe 0x56d87d
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x10]
ja 0x56d87d
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xa0], edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.00568ac0
add esp, 8
mov edx, dword [ebp - 0x30]
sub edx, 1
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp - 0x18]
jbe 0x56d78e
call fcn.005e0292
cmp dword [ebp - 0x14], 0x10
jb 0x56d79f
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x104], ecx
jmp 0x56d7a8
lea edx, [ebp - 0x28]
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x104]
add eax, dword [ebp - 0xa4]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x56d819
mov dword [ebp - 0x108], 0x685b30
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x108]
mov cl, byte [eax]
mov byte [ebp - 0x10d], cl
add dword [ebp - 0x108], 1
cmp byte [ebp - 0x10d], 0
jne 0x56d7d5
mov edx, dword [ebp - 0x108]
sub edx, dword [ebp - 0x10c]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x114]
push eax
push 0x685b30
lea ecx, [ebp - 0x2c]
call int.004178e0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.004028c0
mov ecx, dword [0x68013c]
push ecx
push 0
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.004027b0
mov eax, dword [ebp - 0x88]
or eax, 1
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0xa8]
push edx
call fcn.005e06d6
add esp, 4
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004028c0
mov eax, dword [ebp + 8]
jmp 0x56d95a
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.005e06d6
add esp, 4
lea edx, [ebp - 0xc5]
mov dword [ebp - 0xc4], edx
push 0
push 0
lea ecx, [ebp - 0x84]
call fcn.004028c0
mov dword [ebp - 0x118], str.Cannot_get_current_directory
mov eax, dword [ebp - 0x118]
add eax, 1
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x118]
mov dl, byte [ecx]
mov byte [ebp - 0x11d], dl
add dword [ebp - 0x118], 1
cmp byte [ebp - 0x11d], 0
jne 0x56d8cd
mov eax, dword [ebp - 0x118]
sub eax, dword [ebp - 0x11c]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
push ecx
push str.Cannot_get_current_directory
lea ecx, [ebp - 0x84]
call fcn.00402910
mov byte [ebp - 4], 3
push 0
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x68]
call fcn.00564200
push 0x6a3798
lea eax, [ebp - 0x68]
push eax
call fcn.005ecf53
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x84]
call fcn.004028c0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004028c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret