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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d06e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x58313c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], 0
mov ebx, dword [ebp + 0xc]
push ecx
mov dword [ebp - 0x28], esp
mov eax, dword [ebx]
mov dword [ebp + 0xc], eax
add eax, 0xfffffff8
cmp eax, 0x583008
je 0x41bc0b
lock inc dword [eax]
push dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 1
call fcn.00410690
mov edi, dword [eax]
mov dword [ebp - 0x38], edi
lea esi, [edi - 8]
cmp esi, 0x583008
je 0x41bc30
lock inc dword [esi]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff8
mov dword [ebp - 0x20], 4
cmp ecx, 0x583008
je 0x41bc5b
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41bc5b
push ecx
call fcn.005128b5
add esp, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], 2
mov dword [eax], edi
mov edi, dword [ebp + 8]
push edi
call fcn.0041a740
mov byte [ebp - 4], 0
mov ecx, 5
mov dword [ebp - 0x20], ecx
cmp esi, 0x583008
je 0x41bc9d
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
cmp eax, 0xffffffff
jne 0x41bc9d
push esi
call fcn.005128b5
add esp, 4
mov eax, dword [edi]
cmp byte [eax], 0
je 0x41c132
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 3
push edi
push eax
call fcn.00414490
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 0
cmp eax, 0xffffffff
je 0x41c132
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
add eax, 0xfffffff8
mov dword [ebp - 0x24], 1
cmp eax, 0x583008
je 0x41bcea
lock inc dword [eax]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00429050
push 0x29
mov ecx, eax
call fcn.00417ba0
mov edx, dword [ebp + 0xc]
mov bl, al
add edx, 0xfffffff8
cmp edx, 0x583008
je 0x41bd2c
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
cmp ecx, 0xffffffff
jne 0x41bd2c
push edx
call fcn.005128b5
add esp, 4
test bl, bl
je 0x41bf3f
push 0x28
lea ecx, [ebp - 0x18]
mov byte [ebp + 0x17], 1
call fcn.0041fa00
push 0x29
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0041fa00
mov edi, eax
test esi, esi
jle 0x41bd89
cmp edi, esi
jle 0x41bd89
push edi
lea ecx, [esi + 1]
push ecx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.00428670
mov ecx, 7
push ecx
mov dword [ebp - 0x20], ecx
mov ecx, esp
mov dword [ecx], str.0123456789
mov ecx, eax
call fcn.00414330
test al, al
je 0x41bd89
mov bl, 1
jmp 0x41bd8b
xor bl, bl
mov eax, dword [ebp - 0x20]
test al, 2
je 0x41bdbc
mov ecx, dword [ebp + 0xc]
and eax, 0xfffffffd
add ecx, 0xfffffff8
mov dword [ebp - 0x20], eax
cmp ecx, 0x583008
je 0x41bdbc
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41bdbc
push ecx
call fcn.005128b5
add esp, 4
test bl, bl
je 0x41bf37
push edi
lea eax, [esi + 1]
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.00428670
push dword [eax]
call fcn.0051c612
mov edx, dword [ebp + 0xc]
add esp, 4
add edx, 0xfffffff8
mov dword [ebp - 0x24], eax
cmp edx, 0x583008
je 0x41be06
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
cmp ecx, 0xffffffff
jne 0x41be06
push edx
call fcn.005128b5
add esp, 4
push esi
push 0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.00428670
mov ecx, dword [ebp - 0x18]
mov edi, dword [eax]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff8
mov dword [ebp - 0x18], edi
cmp ecx, 0x583008
je 0x41be43
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41be43
push ecx
call fcn.005128b5
add esp, 4
mov dl, byte [ebp + 0x17]
lea ecx, [edi - 8]
mov dword [ebp - 0x38], ecx
nop dword [eax]
mov eax, edi
mov dword [ebp - 0x1c], eax
cmp ecx, 0x583008
je 0x41be63
lock inc dword [ecx]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 5
test dl, dl
je 0x41bf4d
mov esi, dword [ebp - 0x24]
lea ebx, [ebp + 0xc]
inc esi
mov word [ebp + 0xc], 0x28
mov dword [ebp - 0x24], esi
lea edx, [ebx + 1]
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x41be82
sub ebx, edx
test ebx, ebx
jle 0x41bec3
mov edx, eax
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x41be94
sub edx, esi
lea ecx, [ebp - 0x1c]
mov esi, edx
lea eax, [esi + ebx]
push eax
call fcn.00421aa0
add esi, dword [ebp - 0x1c]
lea eax, [ebp + 0xc]
push ebx
push eax
push esi
call fcn.00514850
mov byte [esi + ebx], 0
add esp, 0xc
mov esi, dword [ebp - 0x24]
push esi
lea ecx, [ebp - 0x1c]
call fcn.00410810
mov ebx, eax
mov word [ebp - 0x10], 0x29
lea edx, [ebp - 0x10]
mov dword [ebp - 0x28], ebx
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x41bee0
sub edx, ecx
mov dword [ebp - 0x30], edx
test edx, edx
jle 0x41bfdf
mov esi, dword [ebx]
lea ebx, [esi + 1]
nop dword [eax]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x41bf00
sub esi, ebx
mov ebx, esi
mov esi, dword [ebp - 0x28]
mov ecx, esi
lea eax, [ebx + edx]
push eax
call fcn.00421aa0
mov esi, dword [esi]
lea eax, [ebp - 0x10]
add esi, ebx
mov ebx, dword [ebp - 0x30]
push ebx
push eax
push esi
call fcn.00514850
add esp, 0xc
mov byte [esi + ebx], 0
jmp 0x41bfdf
mov edi, dword [ebp - 0x18]
jmp 0x41be43
mov dl, byte [ebp + 0x14]
mov edi, dword [ebp - 0x18]
mov byte [ebp + 0x17], dl
jmp 0x41be46
cmp byte [edi], 0
jne 0x41bf56
xor eax, eax
jmp 0x41bf73
lea ecx, [ebp - 0x18]
call fcn.0041fb10
dec eax
mov dword [ebp - 0x28], edi
push eax
lea ecx, [ebp - 0x28]
call fcn.00410630
lea ecx, [ebp - 0x28]
call fcn.0040fe60
push eax
call fcn.0051a15d
add esp, 4
test eax, eax
je 0x41bfcf
lea ebx, [ebp - 0x14]
mov word [ebp - 0x14], 0x5f
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x41bf90
sub ebx, ecx
test ebx, ebx
jle 0x41bfcf
mov edx, dword [ebp - 0x1c]
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x41bfa3
sub edx, esi
lea ecx, [ebp - 0x1c]
mov esi, edx
lea eax, [esi + ebx]
push eax
call fcn.00421aa0
add esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push ebx
push eax
push esi
call fcn.00514850
add esp, 0xc
mov byte [esi + ebx], 0
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
inc esi
push esi
mov dword [ebp - 0x24], esi
call fcn.00410810
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
add eax, 0xfffffff8
push ecx
mov dword [ebp - 0x30], esp
cmp eax, 0x583008
je 0x41bff6
lock inc dword [eax]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.00410690
mov esi, dword [eax]
mov dword [ebp - 0x3c], esi
lea ebx, [esi - 8]
cmp ebx, 0x583008
je 0x41c018
lock inc dword [ebx]
mov ecx, dword [ebp - 0x28]
or dword [ebp - 0x20], 8
add ecx, 0xfffffff8
cmp ecx, 0x583008
je 0x41c040
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41c040
push ecx
call fcn.005128b5
add esp, 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 7
mov dword [eax], esi
lea eax, [ebp - 0x34]
push eax
call fcn.0041a740
mov esi, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [esi]
mov dword [esi], edx
or esi, 0xffffffff
mov dword [eax], ecx
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff8
cmp ecx, 0x583008
je 0x41c085
mov eax, esi
lock xadd dword [ecx], eax
dec eax
cmp eax, esi
jne 0x41c085
push ecx
call fcn.005128b5
add esp, 4
cmp ebx, 0x583008
je 0x41c0a2
mov eax, esi
lock xadd dword [ebx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41c0a2
push ebx
call fcn.005128b5
add esp, 4
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff8
mov byte [ebp - 4], 4
cmp ecx, 0x583008
je 0x41c0c9
mov eax, esi
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41c0c9
push ecx
call fcn.005128b5
add esp, 4
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
cmp byte [eax], 0
je 0x41c0ff
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 8
push ebx
push eax
call fcn.00414490
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dl, byte [ebp + 0x17]
lea ecx, [edi - 8]
mov byte [ebp - 4], 4
cmp eax, 0xffffffff
jne 0x41be50
mov eax, dword [ebp - 0x38]
cmp eax, 0x583008
je 0x41c11c
lock xadd dword [eax], esi
dec esi
cmp esi, 0xffffffff
jne 0x41c11c
push eax
call fcn.005128b5
add esp, 4
mov eax, 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 0x10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10