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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53bfbe
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x58213c]
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, section..data
je 0x41b44b
lock inc dword [eax]
push dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 1
call fcn.0040f610
mov edi, dword [eax]
mov dword [ebp - 0x38], edi
lea esi, [edi - 8]
cmp esi, section..data
je 0x41b470
lock inc dword [esi]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff8
mov dword [ebp - 0x20], 4
cmp ecx, section..data
je 0x41b49b
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41b49b
push ecx
call fcn.00511f41
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.00419f70
mov byte [ebp - 4], 0
mov ecx, 5
mov dword [ebp - 0x20], ecx
cmp esi, section..data
je 0x41b4dd
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
cmp eax, 0xffffffff
jne 0x41b4dd
push esi
call fcn.00511f41
add esp, 4
mov eax, dword [edi]
cmp byte [eax], 0
je 0x41b972
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 3
push edi
push eax
call fcn.00413a00
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 0
cmp eax, 0xffffffff
je 0x41b972
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
add eax, 0xfffffff8
mov dword [ebp - 0x24], 1
cmp eax, section..data
je 0x41b52a
lock inc dword [eax]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00428970
push 0x29
mov ecx, eax
call fcn.00417260
mov edx, dword [ebp + 0xc]
mov bl, al
add edx, 0xfffffff8
cmp edx, section..data
je 0x41b56c
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
cmp ecx, 0xffffffff
jne 0x41b56c
push edx
call fcn.00511f41
add esp, 4
test bl, bl
je 0x41b77f
push 0x28
lea ecx, [ebp - 0x18]
mov byte [ebp + 0x17], 1
call fcn.0041f240
push 0x29
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0041f240
mov edi, eax
test esi, esi
jle 0x41b5c9
cmp edi, esi
jle 0x41b5c9
push edi
lea ecx, [esi + 1]
push ecx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.00427fd0
mov ecx, 7
push ecx
mov dword [ebp - 0x20], ecx
mov ecx, esp
mov dword [ecx], str.0123456789
mov ecx, eax
call fcn.004138a0
test al, al
je 0x41b5c9
mov bl, 1
jmp 0x41b5cb
xor bl, bl
mov eax, dword [ebp - 0x20]
test al, 2
je 0x41b5fc
mov ecx, dword [ebp + 0xc]
and eax, 0xfffffffd
add ecx, 0xfffffff8
mov dword [ebp - 0x20], eax
cmp ecx, section..data
je 0x41b5fc
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41b5fc
push ecx
call fcn.00511f41
add esp, 4
test bl, bl
je 0x41b777
push edi
lea eax, [esi + 1]
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.00427fd0
push dword [eax]
call fcn.0051b642
mov edx, dword [ebp + 0xc]
add esp, 4
add edx, 0xfffffff8
mov dword [ebp - 0x24], eax
cmp edx, section..data
je 0x41b646
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
cmp ecx, 0xffffffff
jne 0x41b646
push edx
call fcn.00511f41
add esp, 4
push esi
push 0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.00427fd0
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, section..data
je 0x41b683
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41b683
push ecx
call fcn.00511f41
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, section..data
je 0x41b6a3
lock inc dword [ecx]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 5
test dl, dl
je 0x41b78d
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 0x41b6c2
sub ebx, edx
test ebx, ebx
jle 0x41b703
mov edx, eax
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x41b6d4
sub edx, esi
lea ecx, [ebp - 0x1c]
mov esi, edx
lea eax, [esi + ebx]
push eax
call fcn.004213c0
add esi, dword [ebp - 0x1c]
lea eax, [ebp + 0xc]
push ebx
push eax
push esi
call fcn.005135c0
mov byte [esi + ebx], 0
add esp, 0xc
mov esi, dword [ebp - 0x24]
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040f790
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 0x41b720
sub edx, ecx
mov dword [ebp - 0x30], edx
test edx, edx
jle 0x41b81f
mov esi, dword [ebx]
lea ebx, [esi + 1]
nop dword [eax]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x41b740
sub esi, ebx
mov ebx, esi
mov esi, dword [ebp - 0x28]
mov ecx, esi
lea eax, [ebx + edx]
push eax
call fcn.004213c0
mov esi, dword [esi]
lea eax, [ebp - 0x10]
add esi, ebx
mov ebx, dword [ebp - 0x30]
push ebx
push eax
push esi
call fcn.005135c0
add esp, 0xc
mov byte [esi + ebx], 0
jmp 0x41b81f
mov edi, dword [ebp - 0x18]
jmp 0x41b683
mov dl, byte [ebp + 0x14]
mov edi, dword [ebp - 0x18]
mov byte [ebp + 0x17], dl
jmp 0x41b686
cmp byte [edi], 0
jne 0x41b796
xor eax, eax
jmp 0x41b7b3
lea ecx, [ebp - 0x18]
call fcn.0041f350
dec eax
mov dword [ebp - 0x28], edi
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f5b0
lea ecx, [ebp - 0x28]
call fcn.0040ede0
push eax
call fcn.0051919a
add esp, 4
test eax, eax
je 0x41b80f
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 0x41b7d0
sub ebx, ecx
test ebx, ebx
jle 0x41b80f
mov edx, dword [ebp - 0x1c]
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x41b7e3
sub edx, esi
lea ecx, [ebp - 0x1c]
mov esi, edx
lea eax, [esi + ebx]
push eax
call fcn.004213c0
add esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push ebx
push eax
push esi
call fcn.005135c0
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.0040f790
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
add eax, 0xfffffff8
push ecx
mov dword [ebp - 0x30], esp
cmp eax, section..data
je 0x41b836
lock inc dword [eax]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.0040f610
mov esi, dword [eax]
mov dword [ebp - 0x3c], esi
lea ebx, [esi - 8]
cmp ebx, section..data
je 0x41b858
lock inc dword [ebx]
mov ecx, dword [ebp - 0x28]
or dword [ebp - 0x20], 8
add ecx, 0xfffffff8
cmp ecx, section..data
je 0x41b880
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41b880
push ecx
call fcn.00511f41
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.00419f70
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, section..data
je 0x41b8c5
mov eax, esi
lock xadd dword [ecx], eax
dec eax
cmp eax, esi
jne 0x41b8c5
push ecx
call fcn.00511f41
add esp, 4
cmp ebx, section..data
je 0x41b8e2
mov eax, esi
lock xadd dword [ebx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41b8e2
push ebx
call fcn.00511f41
add esp, 4
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff8
mov byte [ebp - 4], 4
cmp ecx, section..data
je 0x41b909
mov eax, esi
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41b909
push ecx
call fcn.00511f41
add esp, 4
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
cmp byte [eax], 0
je 0x41b93f
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 8
push ebx
push eax
call fcn.00413a00
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 0x41b690
mov eax, dword [ebp - 0x38]
cmp eax, section..data
je 0x41b95c
lock xadd dword [eax], esi
dec esi
cmp esi, 0xffffffff
jne 0x41b95c
push eax
call fcn.00511f41
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