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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493ce0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b8
mov eax, dword [0x4ba080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x2c8], edi
mov dword [ebp - 0x2c4], ecx
lea ecx, [ebp - 0x248]
call fcn.004875e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 7
mov byte [ebp - 0x2c0], 0
cmova eax, dword [ebp - 0x248]
test eax, eax
je 0x486beb
cmp word [eax], 0
je 0x486beb
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x486beb
test al, 0x10
mov ecx, 1
mov eax, dword [ebp - 0x2c0]
movzx eax, al
cmove eax, ecx
mov dword [ebp - 0x2c0], eax
lea ecx, [ebp - 0x2a0]
call fcn.0042319d
push edi
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 1
call fcn.0041d420
cmp byte [ebp - 0x2c0], 0
jne 0x486cfa
mov esi, dword [ebp - 0x254]
mov eax, dword [ebp - 0x250]
cmp esi, eax
je 0x486c53
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi]
test ecx, ecx
je 0x486c36
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x250]
add esi, 4
cmp esi, eax
jne 0x486c23
mov esi, dword [ebp - 0x254]
cmp esi, eax
je 0x486c53
mov dword [ebp - 0x250], esi
push 0x40
call fcn.0044b99d
add esp, 4
mov dword [ebp - 0x2c0], eax
lea ecx, [eax + 4]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
lea edx, [ecx + 0x10]
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
movups xmmword [eax + 0x1c], xmm0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0xf
mov byte [eax + 0x1c], 0
mov dword [eax], 0x4ab530
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
cmp dword [ecx + 0x14], 0xf
jbe 0x486cb9
mov ecx, dword [ecx]
mov dword [edx], 0
mov byte [ebp - 4], 1
mov byte [ecx], 0
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x2c0], eax
cmp ecx, dword [ebp - 0x24c]
je 0x486ce5
mov dword [ecx], eax
add dword [ebp - 0x250], 4
jmp 0x486d1a
lea eax, [ebp - 0x2c0]
push eax
push ecx
lea ecx, [ebp - 0x254]
call fcn.00403084
jmp 0x486d1a
cmp dword [ebp - 0x234], 7
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x2a0]
cmova eax, dword [ebp - 0x248]
push eax
call fcn.0042354b
push 0x200
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0044dac0
mov edi, dword [ebx + 8]
lea eax, [ebp - 0x218]
add esp, 0xc
push edi
push 0x4a9f54
push eax
call fcn.0040a134
mov edx, dword [ebp - 0x2c4]
lea ecx, [ebp - 0x230]
add esp, 0xc
push dword [ebp - 0x2c8]
call fcn.00488cc0
add esp, 4
mov byte [ebp - 4], 5
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 0xf
cmova eax, dword [ebp - 0x230]
push eax
push ecx
lea ecx, [ebp - 0x2a0]
call fcn.00423bae
mov esi, eax
mov byte [ebp - 0x2b9], 1
cmp esi, 0xffffffff
jle 0x486e67
xorps xmm0, xmm0
mov dword [ebp - 0x2a8], 0
movups xmmword [ebp - 0x2b8], xmm0
mov dword [ebp - 0x2a4], 0xf
mov byte [ebp - 0x2b8], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2b8]
mov eax, dword [ebp - 0x254]
push ecx
push esi
mov ecx, dword [eax]
call fcn.00423127
cmp dword [ebp - 0x2a8], 0
je 0x486e1c
cmp dword [ebp - 0x2a4], 0xf
lea eax, [ebp - 0x2b8]
mov byte [ebp - 0x2b9], 0
cmova eax, dword [ebp - 0x2b8]
push eax
call fcn.0045887e
add esp, 4
cmp eax, edi
jle 0x486e1c
lea eax, [ebp - 0x218]
push eax
push esi
push ecx
lea ecx, [ebp - 0x2a0]
call fcn.00423d15
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2a4]
cmp ecx, 0xf
jbe 0x486e5a
mov edx, dword [ebp - 0x2b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x486e50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4871d9
push ecx
push edx
call fcn.0044b96c
add esp, 8
cmp byte [ebp - 0x2b9], 0
je 0x486f5c
cmp dword [ebp - 0x21c], 0xf
lea edi, [ebp - 0x230]
mov eax, dword [ebp - 0x250]
cmova edi, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x254]
sub eax, ecx
sar eax, 2
test eax, eax
jle 0x486f5c
mov eax, dword [ecx]
mov dword [ebp - 0x2c0], eax
test edi, edi
je 0x486f09
mov cl, byte [edi]
test cl, cl
je 0x486f09
cmp cl, 0x3b
jne 0x486edb
cmp byte [ebp - 0x218], 0
jne 0x486edb
mov eax, dword [eax]
push 0x34
mov esi, dword [eax + 0xc]
call fcn.0044b99d
add esp, 4
mov dword [ebp - 0x2c4], eax
push edi
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00422dcf
mov byte [ebp - 4], 5
jmp 0x486f53
mov eax, dword [eax]
push 0x34
mov esi, dword [eax + 0xc]
call fcn.0044b99d
add esp, 4
mov dword [ebp - 0x2c4], eax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 8
push ecx
push edi
mov ecx, eax
call fcn.00422cdb
mov byte [ebp - 4], 5
jmp 0x486f53
mov eax, dword [eax]
push 0x34
mov esi, dword [eax + 0xc]
call fcn.0044b99d
mov dword [ebp - 0x2c4], eax
xorps xmm0, xmm0
add esp, 4
movups xmmword [eax + 4], xmm0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0xf
mov byte [eax + 4], 0
movups xmmword [eax + 0x1c], xmm0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0xf
mov byte [eax + 0x1c], 0
mov dword [eax], 0x4ab588
mov ecx, dword [ebp - 0x2c0]
push eax
call esi
cmp dword [ebp - 0x234], 7
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x2a0]
cmova eax, dword [ebp - 0x248]
push eax
call fcn.00423a74
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x21c]
cmp ecx, 0xf
jbe 0x486fba
mov edx, dword [ebp - 0x230]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x486fb0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4871de
push ecx
push edx
call fcn.0044b96c
add esp, 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x254]
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x2a0], 0x4ab5a4
cmp esi, eax
je 0x487023
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi]
test ecx, ecx
je 0x487006
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x250]
add esi, 4
cmp esi, eax
jne 0x486ff3
mov esi, dword [ebp - 0x254]
cmp esi, eax
je 0x487023
mov dword [ebp - 0x250], esi
test esi, esi
je 0x487078
mov ecx, dword [ebp - 0x24c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x487050
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4871de
push ecx
push esi
call fcn.0044b96c
add esp, 8
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
mov ecx, dword [ebp - 0x258]
cmp ecx, 0xf
jbe 0x4870b2
mov edx, dword [ebp - 0x26c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4870a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4871de
push ecx
push edx
call fcn.0044b96c
add esp, 8
mov ecx, dword [ebp - 0x270]
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0xf
mov byte [ebp - 0x26c], 0
cmp ecx, 7
jbe 0x48710d
mov edx, dword [ebp - 0x284]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x487103
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4871de
push ecx
push edx
call fcn.0044b96c
add esp, 8
mov ecx, dword [ebp - 0x288]
xor eax, eax
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 7
mov word [ebp - 0x284], ax
cmp ecx, 0xf
jbe 0x487164
mov edx, dword [ebp - 0x29c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x48715a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4871de
push ecx
push edx
call fcn.0044b96c
add esp, 8
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0xf
mov byte [ebp - 0x29c], 0
cmp ecx, 7
jbe 0x4871bb
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4871b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4871de
push ecx
push edx
call fcn.0044b96c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044b95e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0045775f
call fcn.0045775f
int3