Function at 0x486320
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x505856
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x54b708]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54b708]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2ac]
mov dword [esp + 0x2c], eax
xor ebp, ebp
mov dword [esp + 0x2a0], ebp
mov esi, dword [esp + 0x2a8]
cmp dword [esi - 0xc], ebp
jne 0x4863a9
lea eax, [esi - 0x10]
mov dword [esp + 0x2a0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4863a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x486d5a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48637b
push 0x520cd4
lea ecx, [esp + 0x18]
call fcn.0043e3f0
push 0x522714
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a4], 1
call fcn.0043e3f0
mov byte [esp + 0x2a0], 2
call fcn.004a4cfc
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4863fb
push 0x80004005
call fcn.0040bb70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x2a0], 3
call fcn.004a4cfc
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x48642d
push 0x80004005
call fcn.0040bb70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x2a0], 4
call fcn.004a4cfc
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x48645f
push 0x80004005
call fcn.0040bb70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
add esi, 0xfffffff0
push esi
mov byte [esp + 0x2a4], 5
mov dword [esp + 0x38], esi
call fcn.0043d1d0
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x2a0], 6
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0043ec90
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
cmp eax, 2
mov dword [esp + 0x30], 3
jl 0x486645
cmp eax, ebp
jge 0x4864cb
push 0x80070057
call fcn.0040bb70
movzx eax, word [esi]
movzx eax, ax
push eax
call fcn.004ba59b
add esp, 4
test eax, eax
je 0x486645
mov edi, dword [esi - 0xc]
cmp edi, 1
jge 0x4864f4
push 0x80070057
call fcn.0040bb70
mov edx, dword [esp + 0x28]
mov eax, dword [edx - 0xc]
cmp eax, 1
movzx ecx, word [esi + 2]
jne 0x486645
test eax, eax
jge 0x486516
push 0x80070057
call fcn.0040bb70
movzx eax, word [edx]
cmp ax, cx
jne 0x486645
cmp edi, 2
je 0x486552
jge 0x486533
push 0x80070057
call fcn.0040bb70
movzx eax, word [esi + 4]
push eax
lea eax, [esp + 0x18]
call fcn.0043f020
add esp, 4
test al, al
je 0x4865fc
cmp dword [esi - 0xc], 3
jne 0x486555
or ebp, 0xffffffff
mov dword [esp + 0x30], 3
mov esi, dword [esp + 0x30]
push esi
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x20]
call fcn.0043eeb0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x2a4], 7
call fcn.0043f1c0
mov byte [esp + 0x2a0], 6
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4865aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea ebx, [esp + 0x18]
call fcn.0043ec10
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
call fcn.0043f1c0
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x20]
push edx
call fcn.0043f1c0
cmp ebp, 0xffffffff
je 0x486bc1
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [esp + 0x18]
jne 0x486833
or edi, 0xffffffff
jmp 0x48695b
lea ecx, [esp + 0x18]
call fcn.0040dab0
lea ecx, [esp + 0x1c]
call fcn.0040dab0
lea ecx, [esp + 0x24]
call fcn.0040dab0
lea ecx, [esp + 0x20]
call fcn.0040dab0
lea ecx, [esp + 0x28]
call fcn.0040dab0
lea ecx, [esp + 0x14]
call fcn.0040dab0
lea ecx, [esp + 0x2a8]
call fcn.0040dab0
xor eax, eax
jmp 0x486d5a
mov edi, dword [esi - 0xc]
cmp edi, 1
jl 0x48655d
test edi, edi
jge 0x48665f
push 0x80070057
call fcn.0040bb70
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
cmp eax, 1
movzx ecx, word [esi]
jne 0x48655d
test eax, eax
jge 0x486680
push 0x80070057
call fcn.0040bb70
movzx eax, word [edx]
cmp ax, cx
jne 0x48655d
cmp edi, 1
jne 0x486699
or ebp, 0xffffffff
jmp 0x48655d
jge 0x4866a5
push 0x80070057
call fcn.0040bb70
movzx eax, word [esi + 2]
push eax
lea eax, [esp + 0x18]
call fcn.0043f020
add esp, 4
test al, al
je 0x48655d
mov edi, 3
cmp dword [esi - 0xc], edi
jle 0x486718
jmp 0x4866d0
push edi
lea ecx, [esp + 0x1c]
call fcn.0043f040
mov edx, dword [esp + 0x14]
movzx ecx, ax
mov eax, dword [edx - 0xc]
cmp eax, 1
jne 0x4866f9
test eax, eax
jl 0x4864c1
movzx eax, word [edx]
cmp ax, cx
je 0x486703
add edi, 1
cmp edi, dword [esi - 0xc]
jl 0x4866d0
jmp 0x486718
add edi, 1
cmp edi, 3
mov dword [esp + 0x30], edi
jle 0x486718
cmp edi, dword [esi - 0xc]
jne 0x48655d
lea eax, [esi - 0x10]
mov byte [esp + 0x2a0], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48673c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x2a0], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486760
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a0], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486788
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a0], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4867b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a0], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4867d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a0], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486800
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x2a0], 0xffffffff
add ecx, 0xc
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48682c
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x486d5a
cmp dword [esi - 0xc], 0
jge 0x486841
or edi, 0xffffffff
jmp 0x48695b
push eax
push esi
call fcn.004ba29a
add esp, 8
test eax, eax
jne 0x486857
or edi, 0xffffffff
jmp 0x48695b
sub eax, esi
sar eax, 1
mov edi, eax
jne 0x486952
mov edi, dword [esi - 0xc]
mov ebx, 1
cmp edi, ebx
jge 0x486875
test edi, edi
mov ebx, edi
jle 0x4868c1
sub edi, ebx
cmp dword [esi - 4], 1
jle 0x48688e
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040bc40
mov esi, dword [esp + 0x18]
lea eax, [edi + edi + 2]
push eax
lea ecx, [esi + ebx*2]
push ecx
push eax
push esi
call fcn.004b92a5
push eax
call fcn.0043e6a0
add esp, 0x14
test edi, edi
jl 0x4864c1
cmp edi, dword [esi - 8]
jg 0x4864c1
mov dword [esi - 0xc], edi
mov word [esi + edi*2], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.004198e0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4868e0
or edi, 0xffffffff
jmp 0x48690d
cmp dword [esi - 0xc], 0
jge 0x4868eb
or edi, 0xffffffff
jmp 0x48690d
push eax
push esi
call fcn.004ba29a
add esp, 8
test eax, eax
jne 0x4868fe
or edi, 0xffffffff
jmp 0x48690d
sub eax, esi
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
jne 0x486a81
mov esi, dword [esi - 0xc]
push esi
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x20]
call fcn.0043eeb0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x2a4], 8
call fcn.0043f1c0
mov byte [esp + 0x2a0], 6
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x486abe
cmp edi, 0xffffffff
jne 0x486a81
cmp dword [esi - 0xc], 0
jg 0x48690d
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
mov edi, dword [eax - 0xc]
lea eax, [esi - 0x10]
mov byte [esp + 0x2a0], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48698e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x2a0], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4869b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a0], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4869da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a0], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486a02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a0], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486a2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a0], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486a52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2a0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486a7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x486d5a
push edi
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x20]
call fcn.0043eeb0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x2a4], 9
call fcn.0043f1c0
mov byte [esp + 0x2a0], 6
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x486aca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
lea ebx, [esp + 0x18]
call fcn.0043ec10
mov esi, dword [esp + 0x24]
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.004198e0
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x44]
push ecx
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x486b31
cmp dword [esp + 0x30], 3
je 0x486c20
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
push edx
call fcn.0043f1c0
cmp edi, 0xffffffff
je 0x486bc1
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, dword [esp + 0x30]
push eax
call fcn.004198e0
jmp 0x4865e4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0xffffffff
je 0x486b9c
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
call fcn.0043ef30
add esp, 8
mov byte [esp + 0x2a0], 0xa
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, dword [esp + 0x30]
push eax
call fcn.004198e0
mov byte [esp + 0x2a0], 6
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4865e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4865e4
lea eax, [esp + 0x70]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x486ba3
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004198e0
mov esi, dword [esp + 0x2c]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x486d11
lea ecx, [esp + 0x18]
call fcn.0040dab0
lea ecx, [esp + 0x1c]
call fcn.0040dab0
lea ecx, [esp + 0x24]
call fcn.0040dab0
lea ecx, [esp + 0x20]
call fcn.0040dab0
lea ecx, [esp + 0x28]
call fcn.0040dab0
lea ecx, [esp + 0x14]
call fcn.0040dab0
lea ecx, [esp + 0x2a8]
call fcn.0040dab0
xor eax, eax
jmp 0x486d5a
mov byte [esp + 0x2a0], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486c48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x2a0], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486c6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x2a0], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486c90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a0], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486cb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a0], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486ce0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2a0], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486d08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
jmp 0x48637e
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
lea ecx, [esp + 0x18]
call fcn.0040dab0
lea ecx, [esp + 0x1c]
call fcn.0040dab0
lea ecx, [esp + 0x24]
call fcn.0040dab0
lea ecx, [esp + 0x20]
call fcn.0040dab0
lea ecx, [esp + 0x28]
call fcn.0040dab0
lea ecx, [esp + 0x14]
call fcn.0040dab0
lea ecx, [esp + 0x2a8]
call fcn.0040dab0
mov eax, esi
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.004b8e16
add esp, 0x290
ret