Function at 0x570b30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x603496
mov eax, dword fs:[0]
push eax
sub esp, 0x710
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x708], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x724]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x734]
xor edi, edi
xor eax, eax
cmp ebp, edi
mov ebx, ecx
mov dword [esp + 0x1c], eax
je 0x57118b
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x570b90
sub eax, edx
sar eax, 1
push 0x208
mov esi, eax
lea eax, [esp + 0x518]
push edi
push eax
call fcn.005da970
add esp, 0xc
cmp ebx, edi
je 0x570c9c
cmp esi, 1
mov cx, word [ebx + 2]
mov word [esp + 0x1a], di
mov word [esp + 0x18], cx
je 0x570c13
mov ecx, 0x62ac30
lea eax, [esp + 0x18]
jmp 0x570be0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x570c06
cmp dx, di
je 0x570c02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x570c06
add eax, 4
add ecx, 4
cmp dx, di
jne 0x570be0
xor eax, eax
jmp 0x570c0b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x570c9c
lea edx, [esp + 0xfc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x514]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x570c30
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [esp + 0x100]
push edx
lea eax, [esp + 0x51c]
push eax
call fcn.005da55c
lea eax, [esp + 0x520]
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x570c70
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [esp + 0x518]
push 0x62454c
push edx
call fcn.005da55c
add esp, 0xc
lea eax, [esp + 0x514]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x570ca6
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [esp + 0x518]
push ebx
push edx
call fcn.005da55c
mov eax, ebp
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x570cd3
sub eax, edx
sar eax, 1
push 0x208
mov esi, eax
lea eax, [esp + 0x310]
push edi
push eax
call fcn.005da970
mov cx, word [ebp + 2]
add esp, 0xc
cmp esi, 1
mov word [esp + 0x1a], di
mov word [esp + 0x18], cx
je 0x570d49
mov ecx, 0x62ac30
lea eax, [esp + 0x18]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x570d3c
cmp dx, di
je 0x570d38
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x570d3c
add eax, 4
add ecx, 4
cmp dx, di
jne 0x570d16
xor eax, eax
jmp 0x570d41
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x570dcc
lea edx, [esp + 0xfc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x30c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x570d66
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [esp + 0x100]
push edx
lea eax, [esp + 0x314]
push eax
call fcn.005da55c
lea eax, [esp + 0x318]
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x570da0
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [esp + 0x310]
push 0x62454c
push edx
call fcn.005da55c
add esp, 0xc
lea eax, [esp + 0x30c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x570dd6
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [esp + 0x310]
push ebp
push edx
call fcn.005da55c
add esp, 0xc
lea eax, [esp + 0x58]
push eax
call fcn.00572890
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x518]
mov dword [esp + 0x730], edi
call fcn.00572980
lea edx, [esp + 0x64]
push edx
call fcn.00573770
push 1
lea ecx, [esp + 0x310]
lea esi, [esp + 0x68]
mov byte [esp + 0x730], 1
call fcn.00573ab0
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
mov dword [esp + 0x94], vtable.CSSEnum.0
mov dword [esp + 0xa4], edi
call edx
add eax, 0x10
push 0x48
mov dword [esp + 0xb0], eax
lea eax, [esp + 0xb8]
push edi
push eax
mov dword [esp + 0xac], edi
mov dword [esp + 0xb4], edi
call fcn.005da970
add esp, 0xc
mov ecx, esi
mov byte [esp + 0x72c], 2
push 0x6244e0
xor ebx, ebx
lea eax, [esp + 0xb0]
mov dword [esp + 0xa0], ecx
call fcn.004037a0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x72c], 3
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
mov dword [esp + 0x30], vtable.CSSFiles.0
call eax
mov edx, dword [0x677600]
add eax, 0x10
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
lea esi, [esp + 0x94]
mov byte [esp + 0x72c], 4
call fcn.00575760
cmp eax, 0x80004005
je 0x5710e3
mov edi, 0x105
mov ebp, vtable.CWindowsFile.0
cmp dword [esp + 0xa8], ebx
jne 0x570f5e
cmp dword [esp + 0xa4], ebx
je 0x570f5e
xor eax, eax
cmp dword [esp + 0xb8], 1
sete al
cmp eax, ebx
jne 0x5710cc
push 0x208
lea ecx, [esp + 0x102]
push ebx
push ecx
mov word [esp + 0x108], bx
call fcn.005da970
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea ebx, [esp + 0x100]
lea ecx, [esp + 0x98]
mov dword [esp + 0x1c], edi
call fcn.00575960
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x6c]
push ecx
mov ecx, ebx
call fcn.00573bf0
test eax, eax
jne 0x5710ca
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x18]
push edx
mov edx, dword [eax + 0x24]
xor esi, esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], esi
call edx
test eax, eax
jl 0x5710c1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x20]
push eax
mov eax, dword [edx + 0x28]
push ecx
lea ecx, [esp + 0x38]
call eax
cmp eax, esi
jne 0x5710c1
push 0x20a
mov ecx, ebx
push esi
push ecx
call fcn.005da970
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov eax, ebx
push eax
lea ecx, [esp + 0x9c]
mov dword [esp + 0x20], edi
call fcn.00575830
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
mov dword [esp + 0x44], ebp
call eax
mov edx, dword [0x677600]
add eax, 0x10
mov dword [esp + 0x50], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x44]
push ecx
push 0x1001
lea edx, [esp + 0x60]
push edx
mov ecx, ebx
mov byte [esp + 0x738], 5
call fcn.00572a00
cmp eax, esi
jne 0x5710b0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x20], 1
call fcn.00571dd0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esp + 0x4c]
cmp eax, 0xffffffff
je 0x57109f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x50]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004036c0
lea ecx, [esp + 0x44]
mov byte [esp + 0x72c], 4
call fcn.005716d0
lea ecx, [esp + 0x30]
call fcn.005722d0
xor ebx, ebx
lea esi, [esp + 0x94]
call fcn.00575760
cmp eax, 0x80004005
jne 0x570f37
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x5710f4
push eax
call fcn.005d2367
add esp, 4
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x730], 3
call fcn.00571ff0
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x571123
push eax
call fcn.005d2367
add esp, 4
lea ecx, [esp + 0x94]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x72c], 1
call fcn.00575670
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0x730], bl
call fcn.00573820
mov dword [esp + 0x72c], 0xffffffff
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov dword [esp + 0x58], vtable.CWindowsFileSystem.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x571187
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x724]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x708]
xor ecx, esp
call fcn.005d28b3
add esp, 0x71c
ret