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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60e33e
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x7f206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x1c]
nop dword [eax + eax]
mov byte [ebx + 0x25], 1
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x52551b
push edx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00525490
test al, al
jne 0x525be0
mov edi, dword [ebx + 0x28]
mov dword [ebx + 0x28], 0
test edi, edi
je 0x525518
mov ecx, edi
call fcn.004101d0
push 0x3c
push edi
call fcn.004a7e9f
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x24], 0x7a135c
mov dword [ebp - 4], 0
mov byte [ebp - 0xd], 0
nop dword [eax]
cmp dword [ebp + 0xc], 0
jne 0x525540
test byte [ebx + 0x20], 4
jne 0x525540
xor eax, eax
jmp 0x525543
lea eax, [ebp - 0xd]
mov ecx, dword [ebx + 0xc]
push edx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0xe]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004154d0
mov edi, dword [ebp - 0x24]
test al, al
je 0x525c3d
inc dword [ebx + 0x18]
push ecx
mov eax, esp
lea ecx, [ebp - 0x24]
mov dword [eax], str...
call fcn.005168d0
mov edx, dword [ebp + 0x1c]
test al, al
jne 0x525530
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x34], eax
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x52559e
mov eax, 1
lock xadd dword [ecx], eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x34]
call fcn.00529ba0
mov edx, dword [eax]
mov dword [ebp - 0x38], edx
lea ebx, [edx - 8]
cmp ebx, 0x7a1354
je 0x5255c7
mov eax, 1
lock xadd dword [ebx], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
or eax, 1
add ecx, 0xfffffff8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
cmp ecx, 0x7a1354
je 0x5255f8
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x5255f8
push ecx
call fcn.004a8172
mov edx, dword [ebp - 0x38]
add esp, 4
mov dword [ebp - 0x18], 0x7a135c
cmp ebx, 0x7a1354
je 0x525610
mov eax, 1
lock xadd dword [ebx], eax
lea eax, [ebp - 0x18]
xchg dword [eax], edx
lea ecx, [edx - 8]
cmp ecx, 0x7a1354
je 0x525634
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x525634
push ecx
call fcn.004a8172
add esp, 4
mov byte [ebp - 4], 2
cmp ebx, 0x7a1354
je 0x525654
or eax, 0xffffffff
lock xadd dword [ebx], eax
test eax, eax
jne 0x525654
push ebx
call fcn.004a8172
add esp, 4
cmp byte [ebp - 0xe], 0
mov edx, dword [ebp - 0x1c]
je 0x525ae6
cmp byte [edx + 0x24], 0
je 0x525ae1
test byte [edx + 0x20], 4
je 0x52567b
cmp byte [ebp - 0xd], 0
je 0x52567b
xor al, al
jmp 0x52567d
mov al, 1
test al, al
je 0x525ae1
cmp dword [edx + 0x30], 2
je 0x525802
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00418480
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 2
cmp eax, 0xffffffff
je 0x5256ba
test eax, 0x400
je 0x5256ba
mov al, 1
jmp 0x5256bc
xor al, al
test al, al
je 0x525802
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x30], 1
jne 0x5257fe
mov ebx, dword [edx + 0x34]
lea edx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x38], ebx
call fcn.00500aa0
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x20]
cmp byte [eax], 0
je 0x525742
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.00523d30
add esp, 4
test al, al
je 0x52573f
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x28]
call fcn.00524830
or dword [ebp - 0x14], 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x52573a
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x52573a
push ecx
call fcn.004a8172
mov esi, dword [ebp - 0x28]
jmp 0x525783
mov esi, dword [ebp - 0x28]
jmp 0x525786
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x28], esi
lea ecx, [esi - 8]
cmp ecx, 0x7a1354
je 0x52575f
mov eax, 1
lock xadd dword [ecx], eax
mov eax, dword [ebp - 0x20]
or dword [ebp - 0x14], 4
lea ecx, [eax - 8]
mov byte [ebp - 4], 2
cmp ecx, 0x7a1354
je 0x525786
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x525786
push ecx
call fcn.004a8172
add esp, 4
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x14]
or eax, 2
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], eax
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x2c], eax
mov eax, ecx
cmp byte [ebx + 0xd], 0
jne 0x5257d3
cmp dword [ebx + 0x10], esi
je 0x5257bf
push esi
push dword [ebx + 0x10]
call fcn.0041c700
add esp, 8
test eax, eax
jns 0x5257bf
mov ebx, dword [ebx + 8]
mov ecx, dword [ebp - 0x30]
jmp 0x5257c6
mov ecx, ebx
mov ebx, dword [ebx]
mov dword [ebp - 0x30], ecx
cmp byte [ebx + 0xd], 0
je 0x5257a2
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebx]
jmp 0x5257d6
mov ebx, dword [ebp - 0x38]
cmp ecx, eax
je 0x5257f2
mov eax, dword [ecx + 0x10]
cmp esi, eax
je 0x5257f4
push eax
push esi
call fcn.0041c700
mov ecx, dword [ebp - 0x30]
add esp, 8
test eax, eax
jns 0x5257f4
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
cmp ecx, dword [eax]
je 0x525802
xor bl, bl
jmp 0x525804
mov bl, 1
mov eax, dword [ebp - 0x14]
test al, 2
je 0x525833
and eax, 0xfffffffd
lea ecx, [esi - 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
cmp ecx, 0x7a1354
je 0x525833
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x525833
push ecx
call fcn.004a8172
add esp, 4
test bl, bl
je 0x525ade
push 0x3c
call fcn.004a7e6f
mov ebx, eax
mov dword [ebp - 0x50], ebx
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 5
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + 0x20]
add eax, 0x10
mov dword [ebp - 0x34], ecx
mov edx, eax
mov ecx, ebx
mov dword [ebp - 0x38], eax
call fcn.00525ce0
push 0x7acb6c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.0041d340
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x14]
or eax, 0x10
push 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
call fcn.004a7e6f
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x18]
cmp byte [ecx], 0
je 0x5258d1
push ecx
lea edx, [ebp - 0x18]
mov ecx, esp
lea edi, [ebp - 0x40]
call fcn.00524720
mov edx, edi
lea ecx, [ebp - 0x48]
call fcn.00526850
mov edx, dword [ebp - 0x14]
or edx, 0x40
mov ecx, dword [eax]
jmp 0x5258e2
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x44]
or edx, 0x80
mov ecx, 0x7a135c
mov edi, dword [ebp - 0x3c]
mov dword [edi], ecx
mov edi, dword [ebp - 0x24]
mov dword [eax], 0x7a135c
test dl, dl
jns 0x525922
mov ecx, dword [ebp - 0x44]
and edx, 0xffffff7f
add ecx, 0xfffffff8
mov dword [ebp - 0x14], edx
cmp ecx, 0x7a1354
je 0x525922
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x525922
push ecx
call fcn.004a8172
mov edx, dword [ebp - 0x14]
add esp, 4
test dl, 0x40
je 0x525952
mov ecx, dword [ebp - 0x48]
and edx, 0xffffffbf
add ecx, 0xfffffff8
mov dword [ebp - 0x14], edx
cmp ecx, 0x7a1354
je 0x525952
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x525952
push ecx
call fcn.004a8172
mov edx, dword [ebp - 0x14]
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [eax + 4], 0xffffffff
mov dword [ebx + 0xc], eax
mov dword [ebp - 4], 0xa
mov ecx, dword [ebp - 0x40]
and edx, 0xffffffef
add ecx, 0xfffffff8
mov dword [ebp - 0x14], edx
cmp ecx, 0x7a1354
je 0x525991
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x525991
push ecx
call fcn.004a8172
mov edx, dword [ebp - 0x14]
add esp, 4
test dl, 8
je 0x5259be
mov ecx, dword [ebp + 0x1c]
and edx, 0xfffffff7
add ecx, 0xfffffff8
mov dword [ebp - 0x14], edx
cmp ecx, 0x7a1354
je 0x5259be
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x5259be
push ecx
call fcn.004a8172
add esp, 4
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov dword [ebx + 0x10], eax
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x5259da
mov eax, 1
lock xadd dword [ecx], eax
lea ecx, [ebx + 0x14]
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x18]
call fcn.00524720
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x18], 0xffffffff
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x20], eax
mov word [ebx + 0x24], 1
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0x7a135c
mov eax, dword [ebp - 0x30]
lea ecx, [ebx + 0x38]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ecx], 0
mov byte [ebp - 4], 0x11
cmp dword [ebx + 0x30], 1
jne 0x525ab6
mov ecx, dword [ebx + 0x34]
test ecx, ecx
jne 0x525aa5
push 8
call fcn.004a7e6f
mov ebx, eax
add esp, 4
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 4], 0x12
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.0041eeb0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x30]
or dword [ebp - 0x14], 0x100
mov dword [ebx], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], ebx
cmp eax, ecx
je 0x525a92
mov ecx, dword [eax]
mov dword [ebp - 0x30], 0
mov dword [eax], ebx
test ecx, ecx
je 0x525a92
push ecx
call fcn.0041a970
lea ecx, [ebp - 0x30]
call fcn.00418d40
mov ecx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x50]
mov ecx, dword [ecx]
mov dword [ebx + 0x34], ecx
push dword [ebp + 0x1c]
lea eax, [ebp - 0x18]
push eax
push ecx
lea eax, [ebp - 0x64]
push eax
call fcn.0041f250
mov edx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x4c], eax
mov dword [edx + 0x28], ebx
test eax, eax
je 0x525ae1
mov ecx, eax
call fcn.004101d0
push 0x3c
push dword [ebp - 0x4c]
call fcn.004a7e9f
add esp, 8
mov edx, dword [ebp - 0x1c]
mov al, byte [edx + 0x20]
jmp 0x525aeb
mov eax, dword [edx + 0x20]
shr eax, 1
and al, 1
je 0x525b46
cmp byte [edx + 0x24], 0
jne 0x525afb
cmp dword [edx + 8], 1
jle 0x525b30
mov ebx, dword [edx]
mov eax, dword [edx + 8]
lea eax, [ebx + eax*4]
mov dword [ebp - 0x4c], eax
cmp ebx, eax
je 0x525b46
nop word [eax + eax]
push edi
push dword [ebx]
mov cl, 1
call fcn.00418590
add esp, 8
test al, al
jne 0x525b2b
add ebx, 4
cmp ebx, dword [ebp - 0x4c]
jne 0x525b10
jmp 0x525b46
mov edx, dword [ebp - 0x1c]
mov al, 1
test byte [edx + 0x20], 4
mov bl, byte [ebp - 0xd]
je 0x525b3e
test bl, bl
sete al
test al, al
jne 0x525bf6
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx + 0x28], 0
jne 0x525b88
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x1c]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x525530
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x525530
push ecx
call fcn.004a8172
mov edx, dword [ebp + 0x1c]
add esp, 4
jmp 0x525530
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x525baa
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x525baa
push ecx
call fcn.004a8172
add esp, 4
add edi, 0xfffffff8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x1c]
cmp edi, 0x7a1354
je 0x5254d0
or eax, 0xffffffff
lock xadd dword [edi], eax
test eax, eax
jne 0x5254d0
push edi
call fcn.004a8172
add esp, 4
jmp 0x5254c8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ebp - 0x18]
push eax
lea ecx, [edx + 0x2c]
call fcn.00528440
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x525c0b
mov byte [eax], bl
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x525c17
mov al, byte [ebp - 0xe]
mov byte [ecx], al
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x525c39
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x525c39
push ecx
call fcn.004a8172
add esp, 4
mov bl, 1
jmp 0x525c3f
xor bl, bl
add edi, 0xfffffff8
cmp edi, 0x7a1354
je 0x525c5e
or eax, 0xffffffff
lock xadd dword [edi], eax
test eax, eax
jne 0x525c5e
push edi
call fcn.004a8172
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18