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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60df53
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x7f206c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx]
push ecx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x38], esp
lea ecx, [eax - 8]
mov dword [ebp - 0x48], eax
cmp ecx, 0x7a1354
je 0x523114
mov eax, 1
lock xadd dword [ecx], eax
push edx
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 1
call fcn.00529ba0
mov edi, dword [eax]
mov dword [ebp - 0x60], edi
lea esi, [edi - 8]
cmp esi, 0x7a1354
je 0x52313d
mov eax, 1
lock xadd dword [esi], eax
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff8
mov dword [ebp - 0x58], 4
cmp ecx, 0x7a1354
je 0x523166
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x523166
push ecx
call fcn.004a8172
add esp, 4
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x38]
mov dword [eax], edi
mov edi, dword [ebp - 0x5c]
push edi
call fcn.00527e80
mov byte [ebp - 4], 0
mov eax, 5
mov dword [ebp - 0x58], eax
cmp esi, 0x7a1354
je 0x5231a6
or eax, 0xffffffff
lock xadd dword [esi], eax
test eax, eax
jne 0x5231a6
push esi
call fcn.004a8172
add esp, 4
mov eax, dword [edi]
cmp byte [eax], 0
je 0x5236e1
mov edx, edi
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.00418480
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 0
cmp eax, 0xffffffff
je 0x5236e1
mov eax, dword [ebx]
mov edx, 1
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x3c], eax
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x5231f5
mov eax, edx
lock xadd dword [ecx], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x3c]
call fcn.00517190
push 0x29
mov ecx, eax
call fcn.00517a00
mov ecx, dword [ebp - 0x38]
mov bl, al
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x523235
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x523235
push ecx
call fcn.004a8172
add esp, 4
test bl, bl
je 0x5233eb
push 0x28
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x31], 1
call fcn.00518740
push 0x29
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.00518740
mov edi, eax
test esi, esi
jle 0x523292
cmp edi, esi
jle 0x523292
push edi
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00517540
mov ecx, eax
mov eax, 7
push ecx
mov dword [ebp - 0x58], eax
mov eax, esp
mov dword [eax], str.0123456789
call fcn.005168d0
test al, al
je 0x523292
mov bl, 1
jmp 0x523294
xor bl, bl
mov eax, dword [ebp - 0x58]
test al, 2
je 0x5232c3
mov ecx, dword [ebp - 0x38]
and eax, 0xfffffffd
add ecx, 0xfffffff8
mov dword [ebp - 0x58], eax
cmp ecx, 0x7a1354
je 0x5232c3
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x5232c3
push ecx
call fcn.004a8172
add esp, 4
test bl, bl
je 0x5233dc
push edi
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00517540
push dword [eax]
call fcn.004cdf30
mov edx, dword [ebp - 0x38]
add esp, 4
add edx, 0xfffffff8
mov ebx, eax
mov dword [ebp - 0x48], ebx
cmp edx, 0x7a1354
je 0x52330d
or ecx, 0xffffffff
lock xadd dword [edx], ecx
test ecx, ecx
jne 0x52330d
push edx
call fcn.004a8172
add esp, 4
push esi
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00517540
mov ecx, dword [ebp - 0x3c]
mov edi, dword [eax]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff8
mov dword [ebp - 0x3c], edi
cmp ecx, 0x7a1354
je 0x523348
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x523348
push ecx
call fcn.004a8172
add esp, 4
mov dl, byte [ebp - 0x31]
lea ecx, [edi - 8]
mov dword [ebp - 0x60], ecx
mov esi, edi
mov dword [ebp - 0x40], esi
cmp ecx, 0x7a1354
je 0x523367
mov eax, 1
lock xadd dword [ecx], eax
mov byte [ebp - 4], 5
test dl, dl
je 0x5234a8
inc ebx
mov word [ebp - 0x4c], 0x28
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x48], ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x523383
sub ecx, edx
mov dword [ebp - 0x44], ecx
test ecx, ecx
jle 0x5233cc
mov ebx, edi
lea edx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x523398
sub ebx, edx
lea eax, [ebx + ecx]
push eax
lea ecx, [ebp - 0x40]
call fcn.0051a030
push dword [ebp - 0x44]
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x4c]
push eax
add ebx, esi
push ebx
call fcn.004bf740
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov byte [ebx + eax], 0
mov ebx, dword [ebp - 0x48]
lea ecx, [ebp - 0x10]
mov edx, ebx
test ebx, ebx
js 0x5233fe
call fcn.004fc060
jmp 0x523409
mov edi, dword [ebp - 0x3c]
mov ebx, 1
mov dl, bl
jmp 0x52334b
mov dl, byte [ebp + 0x14]
mov ebx, 1
mov edi, dword [ebp - 0x3c]
mov byte [ebp - 0x31], dl
jmp 0x52334b
neg edx
call fcn.004fc060
dec eax
mov byte [eax], 0x2d
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x44], eax
sub ecx, eax
mov dword [ebp - 0x38], ecx
test ecx, ecx
jle 0x523452
lea edx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x523420
sub esi, edx
mov ebx, esi
lea eax, [ebx + ecx]
push eax
lea ecx, [ebp - 0x40]
call fcn.0051a030
push dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
add ebx, esi
push dword [ebp - 0x44]
push ebx
call fcn.004bf740
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov byte [ebx + eax], 0
lea ecx, [ebp - 0x50]
mov word [ebp - 0x50], 0x29
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x523460
sub ecx, edx
mov dword [ebp - 0x38], ecx
test ecx, ecx
jle 0x523595
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x523477
sub esi, edx
mov ebx, esi
lea eax, [ebx + ecx]
push eax
lea ecx, [ebp - 0x40]
call fcn.0051a030
push dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x50]
add ebx, esi
push eax
push ebx
call fcn.004bf740
mov eax, dword [ebp - 0x38]
jmp 0x52358e
cmp byte [edi], 0
jne 0x5234b1
xor eax, eax
jmp 0x5234ce
lea ecx, [ebp - 0x3c]
call fcn.0040fc40
dec eax
mov dword [ebp - 0x38], edi
push eax
lea ecx, [ebp - 0x38]
call fcn.0040fba0
lea ecx, [ebp - 0x38]
call fcn.0040faa0
push eax
call fcn.004c3cfa
add esp, 4
test eax, eax
je 0x523531
lea ecx, [ebp - 0x54]
mov word [ebp - 0x54], 0x5f
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5234e7
sub ecx, edx
mov dword [ebp - 0x38], ecx
test ecx, ecx
jle 0x523531
mov ebx, edi
lea edx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x523500
sub ebx, edx
lea eax, [ebx + ecx]
push eax
lea ecx, [ebp - 0x40]
call fcn.0051a030
push dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x54]
push eax
add ebx, esi
push ebx
call fcn.004bf740
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov byte [ebx + eax], 0
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x48], edx
js 0x523546
call fcn.004fc060
jmp 0x523551
neg edx
call fcn.004fc060
dec eax
mov byte [eax], 0x2d
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x38], eax
sub ecx, eax
mov dword [ebp - 0x44], ecx
test ecx, ecx
jle 0x523595
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x523563
sub esi, edx
mov ebx, esi
lea eax, [ebx + ecx]
push eax
lea ecx, [ebp - 0x40]
call fcn.0051a030
push dword [ebp - 0x44]
mov esi, dword [ebp - 0x40]
add ebx, esi
push dword [ebp - 0x38]
push ebx
call fcn.004bf740
mov eax, dword [ebp - 0x44]
mov byte [ebx + eax], 0
add esp, 0xc
lea ebx, [esi - 8]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x68], ebx
push ecx
mov dword [ebp - 0x44], esp
cmp ebx, 0x7a1354
je 0x5235b3
mov eax, 1
lock xadd dword [ebx], eax
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.00529ba0
mov esi, dword [eax]
mov dword [ebp - 0x78], esi
lea ecx, [esi - 8]
cmp ecx, 0x7a1354
je 0x5235db
mov eax, 1
lock xadd dword [ecx], eax
mov ecx, dword [ebp - 0x38]
or dword [ebp - 0x58], 8
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x523601
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x523601
push ecx
call fcn.004a8172
add esp, 4
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x64]
mov byte [ebp - 4], 7
mov dword [eax], esi
lea eax, [ebp - 0x70]
push eax
call fcn.00527e80
mov ecx, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov ebx, dword [ebp - 0x68]
mov dword [eax], edx
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x523649
or eax, 0xffffffff
lock xadd dword [ecx], eax
test eax, eax
jne 0x523649
push ecx
call fcn.004a8172
add esp, 4
lea ecx, [esi - 8]
or esi, 0xffffffff
cmp ecx, 0x7a1354
je 0x52366a
mov eax, esi
lock xadd dword [ecx], eax
test eax, eax
jne 0x52366a
push ecx
call fcn.004a8172
add esp, 4
mov byte [ebp - 4], 4
cmp ebx, 0x7a1354
je 0x523689
mov eax, esi
lock xadd dword [ebx], eax
test eax, eax
jne 0x523689
push ebx
call fcn.004a8172
add esp, 4
mov ebx, dword [ebp - 0x5c]
mov eax, dword [ebx]
cmp byte [eax], 0
je 0x5236c2
mov edx, ebx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x7c]
call fcn.00418480
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dl, byte [ebp - 0x31]
lea ecx, [edi - 8]
mov byte [ebp - 4], 4
mov ebx, dword [ebp - 0x48]
cmp eax, 0xffffffff
jne 0x523351
mov ebx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
cmp eax, 0x7a1354
je 0x5236dd
lock xadd dword [eax], esi
test esi, esi
jne 0x5236dd
push eax
call fcn.004a8172
add esp, 4
mov eax, ebx
jmp 0x5236e3
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a7e5e
mov esp, ebp
pop ebp
ret 0x10