Function at 0x56dc20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61e324
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x18], 0x7fff
xor ecx, ecx
mov eax, 0x7fff
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005df5a2
add esp, 4
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x56ddf9
lea edx, [ebp - 0x99]
mov dword [ebp - 0x98], edx
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.004028c0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa0], eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0xa0]
push edx
call fcn.00568ac0
add esp, 8
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
cmp ecx, dword [ebp - 0x20]
jbe 0x56dd0a
call fcn.005e0292
cmp dword [ebp - 0x1c], 0x10
jb 0x56dd1b
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x100], edx
jmp 0x56dd24
lea eax, [ebp - 0x30]
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
add ecx, dword [ebp - 0xa4]
movsx edx, byte [ecx]
cmp edx, 0x5c
je 0x56dd95
mov dword [ebp - 0x104], 0x685b30
mov eax, dword [ebp - 0x104]
add eax, 1
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x104]
mov dl, byte [ecx]
mov byte [ebp - 0x109], dl
add dword [ebp - 0x104], 1
cmp byte [ebp - 0x109], 0
jne 0x56dd51
mov eax, dword [ebp - 0x104]
sub eax, dword [ebp - 0x108]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
push ecx
push 0x685b30
lea ecx, [ebp - 0x34]
call int.004178e0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.004028c0
mov edx, dword [0x68013c]
push edx
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
call fcn.004027b0
mov ecx, dword [ebp - 0x84]
or ecx, 1
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004028c0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xc8]
push eax
call fcn.005e06d6
add esp, 4
mov eax, dword [ebp + 8]
jmp 0x56deba
lea ecx, [ebp - 0xd1]
mov dword [ebp - 0xd0], ecx
push 0
push 0
lea ecx, [ebp - 0x80]
call fcn.004028c0
mov dword [ebp - 0x114], str.Cannot_get_current_directory
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x114]
mov cl, byte [eax]
mov byte [ebp - 0x119], cl
add dword [ebp - 0x114], 1
cmp byte [ebp - 0x119], 0
jne 0x56de2a
mov edx, dword [ebp - 0x114]
sub edx, dword [ebp - 0x118]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x120]
push eax
push str.Cannot_get_current_directory
lea ecx, [ebp - 0x80]
call fcn.00402910
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00564200
push 0x6a3798
lea edx, [ebp - 0x64]
push edx
call fcn.005ecf53
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.004028c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
push ecx
call fcn.005e06d6
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret