Function at 0x40f1b0
Capabilities:
Check if file exists
Create thread
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ffd6d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x69ee98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
lea edi, [ebx + 0x270]
mov edx, edi
mov dword [ebp - 0x1c], edi
lea ecx, [edx + 1]
jmp 0x40f1f0
mov al, byte [edx]
inc edx
test al, al
jne 0x40f1f0
sub edx, ecx
je 0x40f1fd
mov byte [edi], al
mov esi, dword [ebp + 8]
test esi, esi
js 0x40f67e
cmp esi, dword [ebx + 0x228]
jge 0x40f67e
mov eax, dword [ebx + 0x224]
lea ecx, [esi*4]
mov eax, dword [eax + ecx]
sub eax, 0x10
push eax
call fcn.00403750
add eax, 0x10
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
cmp esi, dword [ebx + 0x228]
jge 0x40f67e
mov eax, dword [ebx + 0x224]
lea ecx, [esi*4]
mov eax, dword [eax + ecx]
cmp dword [eax - 0xc], 0
je 0x40f344
mov dword [0x6c77e0], 1
mov dword [0x6c77dc], 1
cmp esi, dword [ebx + 0x228]
jge 0x40f67e
mov eax, dword [ebx + 0x224]
mov eax, dword [eax + ecx]
sub eax, 0x10
push eax
call fcn.00403750
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 1
mov edx, dword [eax + 4]
test edx, edx
js 0x40f683
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x40f2ca
push edx
lea ecx, [ebp - 0x10]
call fcn.00403840
mov esi, dword [ebp - 0x10]
push esi
push 0x208
push edi
call fcn.005e33e1
push dword [esi - 8]
push esi
call fcn.005dafda
add esp, 0x14
test eax, eax
js 0x40f683
cmp eax, dword [esi - 8]
jg 0x40f683
mov dword [esi - 0xc], eax
or ebx, 0xffffffff
mov byte [eax + esi], 0
add esi, 0xfffffff0
mov dword [0x6c77e0], 1
mov eax, ebx
mov dword [0x6c77dc], 1
mov byte [ebp - 4], 0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40f338
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
mov dword [ebp - 0x10], 4
jmp 0x40f63c
or edi, 0xffffffff
cmp dword [0x6c77e4], 0
jne 0x40f632
cmp dword [ebx + 0x10], 0
jne 0x40f632
cmp esi, dword [ebx + 0x214]
jge 0x40f67e
mov eax, dword [ebx + 0x210]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x20], eax
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.00403750
add esp, 4
mov dword [ebp - 0x18], eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
cmp dword [eax + 4], 0
jle 0x40f444
push 0x5c
push esi
call fcn.005e0991
add esp, 8
test eax, eax
je 0x40f444
sub eax, esi
cmp eax, edi
je 0x40f444
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 4]
test edx, edx
js 0x40f683
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x40f3e4
push edx
lea ecx, [ebp - 0x14]
call fcn.00403840
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push esi
push 0x208
push ebx
call fcn.005e33e1
push dword [esi - 8]
push esi
call fcn.005dafda
add esp, 0x14
test eax, eax
js 0x40f683
cmp eax, dword [esi - 8]
jg 0x40f683
mov dword [esi - 0xc], eax
push ebx
mov byte [eax + esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f42b
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [0x6c77e0], 1
mov dword [0x6c77dc], 1
jmp 0x40f5db
mov eax, dword [ebx + 0x6b4]
mov edx, dword [0x6c77d4]
mov dword [0x6c77b8], eax
add edx, 0xfffffff0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], edx
mov eax, dword [eax]
mov dword [0x6c77cc], eax
mov eax, dword [0x6c7804]
lea ecx, [eax - 0x10]
mov dword [ebp - 0x20], ecx
lea ecx, [eax - 0x10]
cmp ecx, edx
je 0x40f4e1
cmp dword [edx + 0xc], 0
lea ebx, [edx + 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x10]
jl 0x40f4d3
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x40f4d3
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00403750
mov dword [ebp - 0x20], eax
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f4c6
mov ecx, dword [ebp - 0x18]
push ecx
mov ebx, dword [ecx]
mov edx, dword [ebx]
mov edi, dword [edx + 4]
mov ecx, edi
call dword [0x613aec]
mov ecx, ebx
call edi
mov ebx, dword [ebp - 0x10]
or edi, 0xffffffff
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [0x6c77d4], eax
jmp 0x40f4e1
push dword [eax - 0xc]
mov ecx, 0x6c77d4
push eax
call fcn.004038a0
mov ecx, dword [0x6c77d8]
lea eax, [ebx + 0x270]
mov dword [0x6c77d0], eax
add ecx, 0xfffffff0
mov dword [0x6c77dc], 0
mov dword [0x6c77e0], 0
mov edx, dword [ebx + 0x694]
mov dword [ebp - 0x18], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x20], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x40f589
cmp dword [ecx + 0xc], 0
lea ebx, [ecx + 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x10]
jl 0x40f57b
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40f57b
mov eax, dword [ebp - 0x20]
push eax
call fcn.00403750
mov dword [ebp - 0x20], eax
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f56e
mov ecx, dword [ebp - 0x18]
push ecx
mov ebx, dword [ecx]
mov edx, dword [ebx]
mov edi, dword [edx + 4]
mov ecx, edi
call dword [0x613aec]
mov ecx, ebx
call edi
mov ebx, dword [ebp - 0x10]
or edi, 0xffffffff
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [0x6c77d8], eax
jmp 0x40f589
push dword [edx - 0xc]
mov ecx, 0x6c77d8
push edx
call fcn.004038a0
lea eax, [ebx + 0x1b8]
mov dword [0x6c77f4], eax
lea eax, [ebx + 0x710]
mov dword [0x6c77e8], eax
lea eax, [ebx + 0x860]
mov dword [0x6c77ec], eax
mov eax, dword [ebx + 0x6a4]
mov eax, dword [eax + 0x6c]
mov dword [0x6c77f0], eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x6c77b8
push 0x408bd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x6c77e4], eax
test eax, eax
je 0x40f60b
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40f602
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
mov dword [ebp - 0x10], 4
jmp 0x40f639
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40f632
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
mov dword [ebp - 0x10], 0
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40f667
mov edi, dword [eax]
push eax
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00486c16
push 0x80070057
call fcn.00402cb0
int3