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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9755
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x616930]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 3
xorps xmm0, xmm0
mov esi, dword [ebp + 0x10]
movlpd qword [ebp - 0x14], xmm0
jne 0x4b7bb5
mov dword [ebp - 0x18], 0
push esi
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
call fcn.004b5ee0
add esp, 0x10
test esi, esi
je 0x4b798d
mov eax, dword [esi + 8]
cmp eax, 1
jne 0x4b7971
cmp dword [esi], 0
setne al
jmp 0x4b7973
and al, 1
test al, al
je 0x4b798d
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
jmp 0x4b7a99
mov dword [ebp - 0x20], 0
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4b7b21
cmp dword [edi + 0x2c], 0
je 0x4b7b21
add edi, 4
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4b79c6
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4b79e6
push esi
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.004b7670
add esp, 0xc
mov ebx, dword [eax]
jmp 0x4b7a2f
test esi, esi
je 0x4b79f8
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
test ebx, 0x400
je 0x4b7a26
push edi
call fcn.004b7580
add esp, 4
test al, al
je 0x4b7a1f
test bl, 0x10
mov eax, 0xb
mov ebx, 4
cmovne ebx, eax
jmp 0x4b7a2f
mov ebx, 9
jmp 0x4b7a2f
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
test esi, esi
je 0x4b7a42
mov ecx, esi
call fcn.004b5930
test al, al
jne 0x4b7b19
mov eax, dword [ebp - 0x18]
push esi
add eax, 4
push ebx
push eax
call fcn.004b7900
mov edi, dword [ebp - 0x10]
add esp, 0xc
mov ebx, dword [ebp - 0x1c]
add edi, eax
mov dword [ebp - 0x10], edi
adc ebx, edx
mov dword [ebp - 0x1c], ebx
test esi, esi
je 0x4b7a72
mov ecx, esi
call fcn.004b5930
test al, al
jne 0x4b7a99
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.004b6540
add esp, 8
test esi, esi
je 0x4b79a4
mov ecx, esi
call fcn.004b5930
test al, al
je 0x4b79a4
mov dword [ebp - 0x10], edi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4b7b02
or eax, 0xffffffff
lock xadd dword [esi], eax
add eax, 0xffffffff
jne 0x4b7b02
test esi, esi
je 0x4b7b02
lea eax, [esi + 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004b59e0
add esp, 8
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], 8
cmp eax, 8
jb 0x4b7ae3
inc eax
lea ecx, [esi + 4]
push eax
push dword [esi + 4]
call fcn.00459da0
xor eax, eax
mov dword [esi + 0x14], 0
push 0x30
push esi
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
call fcn.005bc4f7
add esp, 8
mov eax, dword [ebp - 0x10]
mov edx, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1c]
jmp 0x4b7a99
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4b7b8f
or eax, 0xffffffff
lock xadd dword [edi], eax
add eax, 0xffffffff
jne 0x4b7b8f
test edi, edi
je 0x4b7b8f
lea eax, [edi + 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004b59e0
add esp, 8
lea ecx, [edi + 4]
mov eax, dword [ecx + 0x14]
mov dword [ebp - 4], 0xa
cmp eax, 8
jb 0x4b7b6a
inc eax
push eax
push dword [ecx]
call fcn.00459da0
lea ecx, [edi + 4]
xor eax, eax
mov dword [ecx + 0x10], 0
push 0x30
push edi
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov dword [ebp - 4], 0xffffffff
call fcn.005bc4f7
add esp, 8
mov edi, dword [ebp - 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b7be0
add esp, 0xc
test esi, esi
je 0x4b7bc3
mov eax, dword [esi + 8]
cmp eax, 1
jne 0x4b7bbd
cmp dword [esi], 0
setne al
jmp 0x4b7bbf
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
jmp 0x4b7b92
and al, 1
test al, al
jne 0x4b7bc9
add edi, 1
adc ebx, 0
mov eax, edi
mov edx, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret