Function at 0x535ad0
Capabilities:
Check if file exists
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58cd78
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
fld dword [0x5bdf70]
xor esi, esi
fstp dword [esp + 0x50]
lea ecx, [esp + 0x44]
fld dword [0x5bdf74]
mov dword [esp + 0x2c], esi
fstp dword [esp + 0x54]
mov dword [esp + 0x44], esi
fld dword [0x5bdf78]
mov dword [esp + 0x48], esi
fstp dword [esp + 0x58]
mov dword [esp + 0x4c], 0x11
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], 0xa
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
call fcn.0041d5f0
mov dword [esp + 0x80], esi
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x80], 1
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x80], 2
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x88], 3
call fcn.00536e60
xor eax, eax
cmp dword [esp + 0x48], esi
jne 0x535bd6
mov ebx, dword [esp + 0x44]
jmp 0x535bfd
mov ecx, dword [esp + 0x4c]
cmp ecx, esi
jbe 0x535bf7
mov edi, edi
mov ebx, dword [esp + 0x44]
cmp dword [ebx + eax*4], esi
jne 0x535bf2
add eax, 1
cmp eax, ecx
jb 0x535be0
jmp 0x535bfb
mov eax, dword [ebx + eax*4]
jmp 0x535bfd
mov ebx, dword [esp + 0x44]
xor eax, eax
cmp eax, esi
je 0x535fac
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
je 0x535ee4
cmp eax, esi
mov edi, eax
mov dword [esp + 0x28], edi
jne 0x535c24
mov dword [esp + 0x24], esi
jmp 0x535c57
mov ecx, dword [eax + 8]
cmp ecx, esi
jne 0x535c53
mov eax, dword [eax + 0xc]
xor edx, edx
div dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
xor ecx, ecx
add edx, 1
lea ecx, [ecx]
cmp edx, eax
jae 0x535c53
cmp dword [ebx + edx*4], esi
je 0x535c4c
mov ecx, dword [ebx + edx*4]
add edx, 1
cmp ecx, esi
je 0x535c40
mov dword [esp + 0x24], ecx
mov ecx, dword [edi]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov dword [esp + 0x34], edx
je 0x535cb5
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x535ca8
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x535ca8
call fcn.00481090
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x535c9b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x28]
jmp 0x535cb5
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00480ff0
mov ecx, dword [edi + 4]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x535d08
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x535cfb
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x535cfb
call fcn.00481090
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x535cf2
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [esp + 0x18], edi
jmp 0x535d08
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00480ff0
mov edi, dword [esp + 0x14]
push ecx
lea esi, [edi - 0x10]
mov eax, esi
mov dword [esp + 0x2c], esp
mov ebx, esp
call fcn.00481090
lea ecx, [esp + 0x34]
add eax, 0x10
push ecx
mov dword [ebx], eax
call fcn.005376c0
mov byte [esp + 0x80], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
cmp eax, esi
je 0x535d83
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x535d72
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x535d72
call fcn.00481090
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x535d69
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [esp + 0x14], edi
jmp 0x535d7f
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00480ff0
mov edi, dword [esp + 0x14]
mov byte [esp + 0x80], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x535dab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x535eee
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
je 0x535eca
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
mov dword [esp + 0x28], 0
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x28]
lea edx, [esp + 0x1c]
lea ebx, [esp + 0x18]
mov byte [esp + 0x80], 5
call fcn.005371e0
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
je 0x535f82
test edi, edi
je 0x535f82
push edi
lea ebx, [esp + 0x40]
call fcn.00535a30
add esp, 4
test eax, eax
je 0x535f82
mov eax, dword [esp + 0x3c]
movzx edx, ax
push edx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x48]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._d._d._d._d
lea edi, [esp + 0x34]
call fcn.00481690
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x3c]
add esp, 0x10
add edi, 0xfffffff0
mov eax, edi
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.00481090
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x84], 6
mov eax, dword [esp + 0x24]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x40], esp
mov esi, esp
call fcn.00481090
add eax, 0x10
mov dword [esi], eax
mov ecx, ebx
mov byte [esp + 0x88], 5
call fcn.005373e0
test eax, eax
je 0x535f82
mov byte [esp + 0x80], 3
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x535eca
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
cmp dword [esp + 0x24], 0
je 0x535fac
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x44]
xor esi, esi
jmp 0x535c05
push 0x80004005
call fcn.00473d10
mov byte [esp + 0x80], 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 0x535f16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 1
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 0x535f3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x80], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x535f62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
call fcn.0047b210
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [esp + 0x80], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x535fb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x535fb4
mov dword [esp + 0x2c], 1
mov byte [esp + 0x80], 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 0x535fdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 1
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 0x536004
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 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 0x53602c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
call fcn.0047b210
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4