Function at 0x424f80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45e6a2
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x34], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push str.next
push eax
call fcn.00442ec2
add esp, 8
test eax, eax
jne 0x4256a3
push str.sqlserver_wait_serverping
lea ecx, [esp + 0x24]
call fcn.00406e00
mov dword [esp + 0x58], 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.004160f0
add esp, 8
mov byte [esp + 0x58], 1
push eax
lea esi, [esp + 0x3c]
call fcn.00412c10
mov byte [esp + 0x58], 3
lea ecx, [esp + 0x2c]
call fcn.00406ed0
mov byte [esp + 0x58], 4
lea ecx, [esp + 0x20]
call fcn.00406ed0
lea eax, [esp + 0x40]
push eax
call fcn.00401430
mov byte [esp + 0x58], 5
lea ecx, [esp + 0x40]
push ecx
push 0x414
mov ecx, ebx
call fcn.00430190
mov ecx, eax
call fcn.0043586d
lea edx, [esp + 0x44]
push edx
push 0x411
mov ecx, ebx
call fcn.00430190
mov ecx, eax
call fcn.0043586d
lea eax, [esp + 0x48]
push eax
push 0x3ea
mov ecx, ebx
call fcn.00430190
mov ecx, eax
call fcn.0043586d
lea ecx, [esp + 0x40]
call fcn.0040cd20
mov ecx, eax
call fcn.0040cd70
lea ecx, [esp + 0x44]
call fcn.0040cd20
mov ecx, eax
call fcn.0040cd70
lea ecx, [esp + 0x48]
call fcn.0040cd20
mov ecx, eax
call fcn.0040cd70
lea edi, [esp + 0x40]
call fcn.004256c0
test al, al
je 0x425160
lea ecx, [esp + 0x14]
call fcn.00406fc0
mov byte [esp + 0x58], 6
lea edx, [esp + 0x14]
push edx
push 0x411
mov ecx, ebx
call fcn.00430190
mov ecx, eax
call fcn.0043586d
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, 1
cmp eax, edi
sete al
test al, al
jne 0x425197
push str.sqlserver_publicsharepathnotfound
lea ecx, [esp + 0x24]
call fcn.00406e00
mov bl, 7
mov byte [esp + 0x58], bl
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00416150
add esp, 0xc
mov byte [esp + 0x58], 8
mov eax, dword [eax]
push 0
push 0
push eax
call fcn.0042f5c8
mov byte [esp + 0x58], bl
lea ecx, [esp + 0x2c]
call fcn.00406ed0
mov byte [esp + 0x58], 6
lea ecx, [esp + 0x20]
call fcn.00406ed0
mov byte [esp + 0x58], 5
lea ecx, [esp + 0x14]
call fcn.00406ed0
mov byte [esp + 0x58], 4
lea ecx, [esp + 0x40]
push ecx
call fcn.004014a0
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.00412c80
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x24]
call fcn.00406fc0
mov byte [esp + 0x58], 9
lea edx, [esp + 0x24]
push edx
push 0x3ea
mov ecx, ebx
call fcn.00430190
mov ecx, eax
call fcn.0043586d
lea ecx, [esp + 0x1c]
call fcn.00406fc0
mov byte [esp + 0x58], 0xa
lea ecx, [esp + 0x10]
call fcn.00406fc0
mov byte [esp + 0x58], 0xb
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
cmp eax, 2
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
jle 0x4252bf
add ecx, 4
push 0x5c
push ecx
call fcn.0044391e
add esp, 8
test eax, eax
je 0x4252bf
sub eax, dword [esp + 0x14]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x4252bf
push esi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.00405ff0
mov byte [esp + 0x58], 0xc
push eax
lea ecx, [esp + 0x20]
call fcn.00406800
mov byte [esp + 0x58], 0xb
lea ecx, [esp + 0x2c]
call fcn.00406ed0
inc esi
push esi
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040bc20
mov byte [esp + 0x58], 0xd
push eax
lea ecx, [esp + 0x14]
call fcn.00406800
mov byte [esp + 0x58], 0xb
lea ecx, [esp + 0x2c]
call fcn.00406ed0
mov eax, dword [esp + 0x10]
cmp dword [eax - 4], edi
jle 0x425289
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.00406b50
mov eax, dword [esp + 0x10]
push eax
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00442d0b
add esp, 8
test eax, eax
jl 0x425516
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx - 8]
jg 0x425516
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov esi, dword [esp + 0x10]
cmp dword [esi - 4], edi
jle 0x4252d9
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00406b50
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x4252f3
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x20]
call fcn.00406b50
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
push 2
push esi
push eax
call sub.NETAPI32.dll_NetShareGetInfo
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00442d0b
add esp, 8
test eax, eax
jl 0x425516
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ecx - 8]
jg 0x425516
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00442d0b
add esp, 8
test eax, eax
jl 0x425516
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx - 8]
jg 0x425516
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
test esi, esi
jne 0x4254eb
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x18]
push ecx
lea ecx, [esp + 0x24]
call fcn.00406e00
mov byte [esp + 0x58], 0xe
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
call fcn.00406730
mov byte [esp + 0x58], 0xf
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], edi
jle 0x4253b4
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00406b50
mov eax, dword [esp + 0x18]
push eax
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00442d0b
add esp, 8
test eax, eax
jl 0x425516
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x425516
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [esp + 0x20]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x425403
push 0x80004005
call fcn.00406f30
mov eax, dword [esp + 0x18]
push ecx
push eax
call fcn.00442ec2
add esp, 8
test eax, eax
sete al
test al, al
jne 0x4254cf
push str.sqlserver_publicsharepathserverviewnotfound
lea ecx, [esp + 0x30]
call fcn.00406e00
mov bl, 0x10
mov byte [esp + 0x58], bl
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.004162a0
add esp, 0x14
mov byte [esp + 0x58], 0x11
mov eax, dword [eax]
push 0
push 0
push eax
call fcn.0042f5c8
mov byte [esp + 0x58], bl
lea ecx, [esp + 0x30]
call fcn.00406ed0
mov byte [esp + 0x58], 0xf
lea ecx, [esp + 0x2c]
call fcn.00406ed0
mov eax, dword [esp + 0x28]
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov byte [esp + 0x58], 0xe
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov byte [esp + 0x58], 0xb
lea ecx, [esp + 0x20]
call fcn.00406ed0
mov byte [esp + 0x58], 0xa
lea ecx, [esp + 0x10]
call fcn.00406ed0
mov byte [esp + 0x58], 9
lea ecx, [esp + 0x1c]
call fcn.00406ed0
mov byte [esp + 0x58], 6
lea ecx, [esp + 0x24]
jmp 0x42514d
mov byte [esp + 0x58], 0xe
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov byte [esp + 0x58], 0xb
lea ecx, [esp + 0x20]
call fcn.00406ed0
mov edx, dword [esp + 0x28]
push edx
call sub.NETAPI32.dll_NetApiBufferFree
push edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040fcd0
mov byte [esp + 0x58], 0x12
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, edi
jne 0x42552d
test ecx, ecx
jge 0x425520
push 0x80070057
call fcn.00406f30
movzx eax, word [eax]
cmp ax, 0x5c
jne 0x42552d
xor bl, bl
jmp 0x42552f
mov bl, 1
mov byte [esp + 0x58], 0xb
lea ecx, [esp + 0x30]
call fcn.00406ed0
test bl, bl
je 0x425592
mov edx, dword [esp + 0x44]
mov edi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, ecx
jge 0x42556a
push esi
lea ecx, [esp + 0x48]
call fcn.00406c20
mov edx, dword [esp + 0x44]
mov ecx, 0x5c
mov word [edx + edi*2], cx
test esi, esi
jl 0x425516
mov eax, dword [esp + 0x44]
cmp esi, dword [eax - 8]
jg 0x425516
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x44]
xor edx, edx
mov word [eax + esi*2], dx
mov edi, 1
push edi
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x50]
call fcn.0040fcd0
mov byte [esp + 0x58], 0x13
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, edi
jne 0x4255ca
test ecx, ecx
jge 0x4255bd
push 0x80070057
call fcn.00406f30
movzx eax, word [eax]
cmp ax, 0x5c
jne 0x4255ca
xor bl, bl
jmp 0x4255cc
mov bl, 1
mov byte [esp + 0x58], 0xb
lea ecx, [esp + 0x30]
call fcn.00406ed0
test bl, bl
je 0x425632
mov edx, dword [esp + 0x48]
mov edi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, ecx
jge 0x425607
push esi
lea ecx, [esp + 0x4c]
call fcn.00406c20
mov edx, dword [esp + 0x48]
mov eax, 0x5c
mov word [edx + edi*2], ax
test esi, esi
jl 0x425516
mov eax, dword [esp + 0x48]
cmp esi, dword [eax - 8]
jg 0x425516
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x48]
xor ecx, ecx
mov word [edx + esi*2], cx
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x8c]
mov ecx, dword [ecx + 0xd0]
lea eax, [esp + 0x40]
call fcn.004018a0
mov byte [esp + 0x58], 0xa
lea ecx, [esp + 0x10]
call fcn.00406ed0
mov byte [esp + 0x58], 9
lea ecx, [esp + 0x1c]
call fcn.00406ed0
mov byte [esp + 0x58], 6
lea ecx, [esp + 0x24]
call fcn.00406ed0
mov byte [esp + 0x58], 5
lea ecx, [esp + 0x14]
call fcn.00406ed0
mov byte [esp + 0x58], 4
lea edx, [esp + 0x40]
push edx
call fcn.004014a0
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.00412c80
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4