Function at 0x4826ee
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49f019
mov eax, dword fs:[0]
push eax
sub esp, 0xa5c
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0xa58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cacfc]
xor eax, esp
push eax
lea eax, [esp + 0xa70]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
lea ecx, [esp + 0xb0]
mov dword [esp + 0x14], ebp
call fcn.00401f60
mov eax, dword [esi + 0x93c]
lea ecx, [eax + 0x550]
mov dword [esp + 0x1c], ebp
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov dword [esp + 0xa78], ebp
call edx
test eax, eax
jg 0x482690
push 0x4ad8fc
mov eax, dword [esi + 4]
push eax
call fcn.004772b0
add esp, 8
lea ecx, [esp + 0xb0]
mov dword [esp + 0xa78], 0xffffffff
call fcn.00401fd0
xor eax, eax
jmp 0x4830c5
mov eax, dword [esi + 0x940]
mov edx, dword [eax + 0x550]
lea ecx, [eax + 0x550]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jg 0x4826b6
mov ecx, dword [esi + 4]
push 0x4ad910
push ecx
jmp 0x48266a
mov eax, dword [esi + 0x934]
mov edx, dword [eax + 0x698]
lea ecx, [eax + 0x698]
mov eax, dword [edx + 8]
call eax
cmp eax, 4
ja case.0x4826d2.0
jmp dword [eax*4 + 0x4830f0]
mov ebx, 0x14
jmp 0x4826f8
mov ebx, 0xa
jmp 0x4826f8
mov ebx, 5
jmp 0x4826f8
mov ebx, 1
jmp 0x4826f8
or ebx, 0xffffffff
push 0x208
lea edi, [esi + 0xc84]
push ebp
push edi
call fcn.00487630
push 0x208
lea eax, [esi + 0xe8c]
push ebp
push eax
call fcn.00487630
push 0x208
lea eax, [esi + 0x1094]
push ebp
push eax
call fcn.00487630
mov ecx, dword [esi + 0x930]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
add esp, 0x24
lea eax, [esp + 0x2c]
push eax
call edx
push eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0xa7c], 1
call fcn.00402240
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa78], 0
call fcn.00401fd0
lea ecx, [esp + 0xb0]
call fcn.00402010
mov ecx, edi
movzx edx, word [eax]
mov word [ecx], dx
add eax, 2
add ecx, 2
cmp dx, bp
jne 0x482777
mov ecx, dword [esi + 0x928]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x2c]
push edx
call eax
push eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0xa7c], 2
call fcn.00402240
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa78], 0
call fcn.00401fd0
lea ecx, [esp + 0xb0]
call fcn.00402010
lea edx, [esi + 0xe8c]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, bp
jne 0x4827d2
mov ecx, dword [esi + 0x92c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x2c]
push eax
call edx
push eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0xa7c], 3
call fcn.00402240
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa78], 0
call fcn.00401fd0
lea ecx, [esp + 0xb0]
call fcn.00402010
lea edx, [esi + 0x1094]
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, bp
jne 0x482830
lea eax, [esp + 0x1c]
push eax
push 0x1f6
lea edi, [esi + 0xe8c]
push edi
push ebp
call sub.NETAPI32.dll_NetShareGetInfo
test eax, eax
jne 0x482b4d
mov ecx, dword [esp + 0x1c]
push ecx
call sub.NETAPI32.dll_NetApiBufferFree
push ebp
lea edx, [esp + 0x28]
push edx
push 0x3ee
push edi
push ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], ebx
call sub.NETAPI32.dll_NetShareSetInfo
test eax, eax
je 0x482892
push 0x4ad924
jmp 0x482666
mov eax, dword [esi + 0x93c]
mov edx, dword [eax + 0x550]
lea ecx, [eax + 0x550]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jle 0x4828b6
push edi
call fcn.004782d0
add esp, 4
mov eax, dword [esi + 0x93c]
mov edx, dword [eax + 0x550]
lea ecx, [eax + 0x550]
mov eax, dword [edx + 0xc]
xor ebx, ebx
call eax
test eax, eax
jle 0x4829a4
jmp 0x4828e0
mov ecx, dword [esi + 0x93c]
mov edx, dword [ecx + 0x550]
mov eax, dword [edx]
add ecx, 0x550
push ebx
call eax
mov ebp, eax
test ebp, ebp
je 0x482982
mov edx, dword [ebp + 0x550]
mov eax, dword [edx]
lea ecx, [ebp + 0x550]
push 0
call eax
mov edi, eax
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0xf8]
mov ecx, ebp
mov byte [esp + 0xa78], 4
call edx
mov ebp, eax
mov eax, dword [edi]
mov edx, dword [eax + 0xf8]
mov ecx, edi
call edx
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
push eax
push ebp
lea ecx, [esp + 0x34]
call fcn.00402010
push eax
lea eax, [esi + 0xe8c]
push eax
call fcn.00478e50
add esp, 0x10
test eax, eax
je 0x482ae4
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa78], 0
call fcn.00401fd0
mov ecx, dword [esi + 0x93c]
mov edx, dword [ecx + 0x550]
mov eax, dword [edx + 0xc]
add ecx, 0x550
inc ebx
call eax
cmp ebx, eax
jl 0x4828e0
xor ebp, ebp
mov eax, dword [esi + 0x940]
mov edx, dword [eax + 0x550]
lea ecx, [eax + 0x550]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jle 0x4829ce
lea eax, [esi + 0xe8c]
push eax
call fcn.00478280
add esp, 4
mov eax, dword [esi + 0x940]
mov edx, dword [eax + 0x550]
lea ecx, [eax + 0x550]
mov eax, dword [edx + 0xc]
xor ebx, ebx
call eax
test eax, eax
jle 0x482ab2
nop
mov ecx, dword [esi + 0x940]
mov edx, dword [ecx + 0x550]
mov eax, dword [edx]
add ecx, 0x550
push ebx
call eax
mov ebp, eax
test ebp, ebp
je 0x482a92
mov edx, dword [ebp + 0x550]
mov eax, dword [edx]
lea ecx, [ebp + 0x550]
push 0
call eax
mov edi, eax
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0xf8]
mov ecx, ebp
mov byte [esp + 0xa78], 5
call edx
mov ebp, eax
mov eax, dword [edi]
mov edx, dword [eax + 0xf8]
mov ecx, edi
call edx
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
push eax
push ebp
lea ecx, [esp + 0x34]
call fcn.00402010
push eax
lea eax, [esi + 0xc84]
push eax
call fcn.0046e420
add esp, 0x10
test eax, eax
je 0x482b0b
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa78], 0
call fcn.00401fd0
mov ecx, dword [esi + 0x940]
mov edx, dword [ecx + 0x550]
mov eax, dword [edx + 0xc]
add ecx, 0x550
inc ebx
call eax
cmp ebx, eax
jl 0x4829f0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esi + 0x1094]
mov dword [esp + 0x20], eax
push 0x3ec
lea eax, [esi + 0xe8c]
push eax
push 0
call sub.NETAPI32.dll_NetShareSetInfo
test eax, eax
je 0x482b32
push 0x4ad96c
jmp 0x482666
mov ecx, dword [esi + 4]
push 0x4ad93c
push ecx
call fcn.004772b0
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa78], 0
call fcn.00401fd0
jmp 0x482672
mov ecx, dword [esi + 4]
push 0x4ad954
push ecx
call fcn.004772b0
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa78], 0
call fcn.00401fd0
jmp 0x482672
mov ecx, dword [esi + 4]
push 0x4ad980
push ecx
mov edi, 1
call fcn.004772b0
add esp, 8
jmp 0x4830a6
lea ebp, [esi + 0xc84]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x482b6c
mov edx, dword [esi + 4]
push str.__rNX__W
push edx
jmp 0x48266a
push ebp
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
je 0x482b81
push str.__rN_bT
jmp 0x482666
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x482b86
sub eax, edx
sar eax, 1
jne 0x482ba5
mov ecx, dword [esi + 4]
push 0x4ad9ac
push ecx
jmp 0x48266a
lea eax, [esi + 0x1094]
push eax
push ebx
push 0
push 0x1200a9
push 0x4ad9c0
lea edi, [esi + 0xe8c]
push edi
lea ebp, [esi + 0xc84]
push ebp
call fcn.00477b90
add esp, 0x1c
test eax, eax
jne 0x483052
push 0x4ad9d4
push edi
call fcn.00478030
mov eax, dword [esi + 0x93c]
mov edx, dword [eax + 0x550]
lea ecx, [eax + 0x550]
mov eax, dword [edx + 0xc]
add esp, 8
xor ebx, ebx
call eax
test eax, eax
jle 0x482cf2
jmp 0x482c10
mov ecx, dword [esi + 0x93c]
mov edx, dword [ecx + 0x550]
mov eax, dword [edx]
add ecx, 0x550
push ebx
call eax
mov ebp, eax
test ebp, ebp
je 0x482cae
mov edx, dword [ebp + 0x550]
mov eax, dword [edx]
lea ecx, [ebp + 0x550]
push 0
call eax
mov edi, eax
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0xf8]
mov ecx, ebp
mov byte [esp + 0xa78], 6
call edx
mov ebp, eax
mov eax, dword [edi]
mov edx, dword [eax + 0xf8]
mov ecx, edi
call edx
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
push eax
push ebp
lea ecx, [esp + 0x34]
call fcn.00402010
push eax
lea eax, [esi + 0xe8c]
push eax
call fcn.00478e50
add esp, 0x10
test eax, eax
je 0x482cd0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa78], 0
call fcn.00401fd0
mov ecx, dword [esi + 0x93c]
mov edx, dword [ecx + 0x550]
mov eax, dword [edx + 0xc]
add ecx, 0x550
inc ebx
call eax
cmp ebx, eax
jl 0x482c10
jmp 0x482cf2
mov ecx, dword [esi + 4]
push 0x4ad9e8
push ecx
call fcn.004772b0
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa78], 0
call fcn.00401fd0
mov eax, dword [esi + 0x940]
mov edx, dword [eax + 0x550]
lea ecx, [eax + 0x550]
mov eax, dword [edx + 0xc]
xor ebx, ebx
call eax
test eax, eax
jle 0x482df5
mov ecx, dword [esi + 0x940]
mov edx, dword [ecx + 0x550]
mov eax, dword [edx]
add ecx, 0x550
push ebx
call eax
mov ebp, eax
test ebp, ebp
je 0x482db1
mov edx, dword [ebp + 0x550]
mov eax, dword [edx]
lea ecx, [ebp + 0x550]
push 0
call eax
mov edi, eax
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0xf8]
mov ecx, ebp
mov byte [esp + 0xa78], 7
call edx
mov ebp, eax
mov eax, dword [edi]
mov edx, dword [eax + 0xf8]
mov ecx, edi
call edx
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
push eax
push ebp
lea ecx, [esp + 0x34]
call fcn.00402010
push eax
lea eax, [esi + 0xc84]
push eax
call fcn.0046e420
add esp, 0x10
test eax, eax
je 0x482dd3
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa78], 0
call fcn.00401fd0
mov ecx, dword [esi + 0x940]
mov edx, dword [ecx + 0x550]
mov eax, dword [edx + 0xc]
add ecx, 0x550
inc ebx
call eax
cmp ebx, eax
jl 0x482d13
jmp 0x482df5
mov ecx, dword [esi + 4]
push 0x4ada00
push ecx
call fcn.004772b0
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa78], 0
call fcn.00401fd0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esi + 0x1094]
mov dword [esp + 0x20], eax
push 0x3ec
lea eax, [esi + 0xe8c]
push eax
push 0
call sub.NETAPI32.dll_NetShareSetInfo
call fcn.00478710
call fcn.00479650
call fcn.004784d0
test eax, eax
je 0x482ec6
lea ecx, [esp + 0x134]
call fcn.004658d0
mov eax, dword [esi + 4]
push 0
push connect
push connect
push connect
push connect
push pe_nt_image_headers32
push 0xce0000
push 0
push eax
lea ecx, [esp + 0x158]
mov byte [esp + 0xa9c], 8
call fcn.00401370
push 0x4ada18
lea ecx, [esp + 0x138]
call fcn.00464e10
push 0x4ada30
lea ecx, [esp + 0x138]
call fcn.00464e20
push 0
lea ecx, [esp + 0x138]
call fcn.00464e50
lea ecx, [esp + 0x134]
call fcn.00401480
lea ecx, [esp + 0x134]
mov byte [esp + 0xa78], 0
call fcn.00465a50
push 0x4ada3c
call fcn.00478e10
add esp, 4
test eax, eax
je 0x482f71
lea ecx, [esp + 0x134]
call fcn.004658d0
mov ecx, dword [esi + 4]
push 0
push connect
push connect
push connect
push connect
push pe_nt_image_headers32
push 0xce0000
push 0
push ecx
lea ecx, [esp + 0x158]
mov byte [esp + 0xa9c], 9
call fcn.00401370
push 0x4ada48
lea ecx, [esp + 0x138]
call fcn.00464e10
push 0x4ada60
lea ecx, [esp + 0x138]
call fcn.00464e20
push 0
lea ecx, [esp + 0x138]
call fcn.00464e50
lea ecx, [esp + 0x134]
call fcn.00401480
lea ecx, [esp + 0x134]
mov byte [esp + 0xa78], 0
call fcn.00465a50
push 0x4ada6c
call fcn.00478e10
add esp, 4
test eax, eax
je 0x48301c
lea ecx, [esp + 0x134]
call fcn.004658d0
mov edx, dword [esi + 4]
push 0
push connect
push connect
push connect
push connect
push pe_nt_image_headers32
push 0xce0000
push 0
push edx
lea ecx, [esp + 0x158]
mov byte [esp + 0xa9c], 0xa
call fcn.00401370
push 0x4ada88
lea ecx, [esp + 0x138]
call fcn.00464e10
push 0x4adaa0
lea ecx, [esp + 0x138]
call fcn.00464e20
push 0
lea ecx, [esp + 0x138]
call fcn.00464e50
lea ecx, [esp + 0x134]
call fcn.00401480
lea ecx, [esp + 0x134]
mov byte [esp + 0xa78], 0
call fcn.00465a50
lea eax, [esi + 0xc84]
push eax
push 0x4adabc
push 0x104
push 0x4d06f8
mov dword [esp + 0x24], 1
call fcn.00466960
mov eax, dword [esi + 4]
push 0x4adad4
push eax
call fcn.004772b0
add esp, 0x18
jmp 0x4830a2
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
push 0x400
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 4]
push edx
push eax
call fcn.004772b0
mov ecx, dword [esp + 0x28]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
push 0x4adadc
push 0x104
push 0x4d06f8
call fcn.00466960
add esp, 0x10
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0xb0]
mov dword [esi + 0xa78], edi
mov dword [esp + 0xa78], 0xffffffff
call fcn.00401fd0
mov eax, edi
mov ecx, dword [esp + 0xa70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa58]
xor ecx, esp
call fcn.00486dc0
add esp, 0xa68
ret