Function at 0x570480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ffa5c
mov eax, dword fs:[0]
push eax
sub esp, 0x920
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x918], eax
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x930]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
cmp ecx, ebx
mov edi, edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x18], eax
je 0x570b05
mov eax, edi
lea edx, [eax + 2]
jmp 0x5704e0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5704e0
sub eax, edx
sar eax, 1
push 0x208
mov esi, eax
lea eax, [esp + 0x518]
push ebx
push eax
call fcn.005da970
add esp, 0xc
cmp edi, ebx
je 0x5705ec
cmp esi, 1
mov cx, word [edi + 2]
mov word [esp + 0x16], bx
mov word [esp + 0x14], cx
je 0x570563
mov ecx, 0x62ac30
lea eax, [esp + 0x14]
jmp 0x570530
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x570556
cmp dx, bx
je 0x570552
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x570556
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x570530
xor eax, eax
jmp 0x57055b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x5705ec
lea edx, [esp + 0x304]
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, bx
jne 0x570580
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [esp + 0x308]
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, bx
jne 0x5705c0
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, bx
jne 0x5705f6
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [esp + 0x518]
push edi
push edx
call fcn.005da55c
mov edi, dword [esp + 0x58]
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x570627
sub eax, edx
sar eax, 1
push 0x208
mov esi, eax
lea eax, [esp + 0x720]
push ebx
push eax
call fcn.005da970
mov cx, word [edi + 2]
add esp, 0xc
cmp esi, 1
mov word [esp + 0x16], bx
mov word [esp + 0x14], cx
je 0x5706a3
mov ecx, 0x62ac30
lea eax, [esp + 0x14]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x570696
cmp dx, bx
je 0x570692
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x570696
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x570670
xor eax, eax
jmp 0x57069b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x57072c
lea edx, [esp + 0x304]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x71c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5706c0
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [esp + 0x308]
push edx
lea eax, [esp + 0x724]
push eax
call fcn.005da55c
lea eax, [esp + 0x728]
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x570700
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [esp + 0x720]
push 0x62454c
push edx
call fcn.005da55c
add esp, 0xc
lea eax, [esp + 0x71c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x570736
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [esp + 0x720]
push edi
push edx
call fcn.005da55c
add esp, 0xc
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x518]
call fcn.00409dd0
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x720]
mov dword [esp + 0x93c], ebx
call fcn.00409dd0
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x93c], 1
call fcn.00572890
lea eax, [esp + 0x40]
push eax
lea edx, [esp + 0x518]
mov byte [esp + 0x93c], 2
call fcn.00572980
lea esi, [esp + 0x9c]
call fcn.00572ca0
lea ecx, [esp + 0x40]
mov edx, esi
push ecx
push edx
lea esi, [esp + 0x51c]
mov byte [esp + 0x940], 3
call fcn.00572da0
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
mov dword [esp + 0x2c], vtable.CWindowsFile.0
call edx
add eax, 0x10
mov dword [esp + 0x38], eax
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x93c], 5
call fcn.00573770
push ebx
lea ecx, [esp + 0x720]
lea esi, [esp + 0x70]
mov byte [esp + 0x93c], 6
call fcn.00573ab0
lea ecx, [esp + 0x9c]
call fcn.00572e00
cmp eax, 0x80004005
je 0x570a1e
mov edi, vtable.CSSFiles.0
lea ecx, [ecx]
cmp dword [esp + 0xa8], ebx
jne 0x570898
cmp dword [esp + 0x2fc], 0xffffffff
je 0x570898
xor eax, eax
cmp dword [esp + 0xac], 0x10
sete al
cmp eax, ebx
jne 0x570a07
push 0x208
lea ecx, [esp + 0x30a]
push ebx
push ecx
mov word [esp + 0x310], bx
call fcn.005da970
add esp, 0xc
lea edx, [esp + 0x304]
push edx
lea ecx, [esp + 0xa0]
call fcn.00573140
lea eax, [esp + 0x2c]
push eax
push ebx
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x310]
call fcn.00572a00
cmp eax, ebx
jne 0x570a07
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x14]
push edx
mov edx, dword [eax + 0x24]
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], ebx
call edx
test eax, eax
jl 0x5709e0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edx + 0x28]
push ecx
lea ecx, [esp + 0x34]
call eax
cmp eax, ebx
jne 0x5709e0
push 0x20a
lea ecx, [esp + 0x308]
push ebx
push ecx
call fcn.005da970
add esp, 0xc
lea edx, [esp + 0x304]
push edx
lea ecx, [esp + 0xa0]
call fcn.00573030
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
mov dword [esp + 0x58], edi
call edx
add eax, 0x10
mov dword [esp + 0x64], eax
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x68], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
lea eax, [esp + 0x58]
push eax
push 0x1001
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x310]
mov byte [esp + 0x944], 7
call fcn.00573bf0
cmp eax, ebx
jne 0x5709ce
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c], 1
call fcn.00572680
lea ecx, [esp + 0x58]
call fcn.005722d0
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x93c], 6
call fcn.00571ff0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esp + 0x34]
cmp eax, 0xffffffff
je 0x5709f6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x38]
mov dword [esp + 0x34], 0xffffffff
call fcn.004036c0
lea ecx, [esp + 0x9c]
call fcn.00572e00
cmp eax, 0x80004005
jne 0x570870
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x570a2f
push eax
call fcn.005d2367
add esp, 4
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x93c], 5
call fcn.00573820
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x570a5e
push eax
call fcn.005d2367
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
call fcn.005716d0
lea ecx, [esp + 0x9c]
call fcn.00572d50
mov byte [esp + 0x938], 1
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov dword [esp + 0x40], vtable.CWindowsFileSystem.0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x570aaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x938], bl
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x570ad6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x938], 0xffffffff
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x570b01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x930]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x918]
xor ecx, esp
call fcn.005d28b3
mov esp, ebp
pop ebp
ret