Function at 0x415fb0
Capabilities:
Check if file exists
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6a56e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
jmp 0x415ff1
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x14
jge 0x41601a
lea ecx, [ebp + 8]
push ecx
call fcn.004097d0
add esp, 4
lea ecx, [ebp + 8]
call fcn.0040b0c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416018
jmp 0x41601a
jmp 0x415fe8
mov ecx, 0x6ade60
call fcn.0040a540
movzx edx, al
test edx, edx
je 0x416046
mov byte [ebp - 0x1d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040af30
mov al, byte [ebp - 0x1d]
jmp 0x4162a6
push 4
lea ecx, [ebp - 0x14]
call fcn.00405ed0
lea eax, [ebp - 0x4c]
push eax
call fcn.00407ef0
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 1
push 0x6825f4
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.0040a830
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.0040af30
mov dword [ebp - 0x30], 0
jmp 0x41609c
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0x14
jge 0x4160c5
lea edx, [ebp - 0x14]
push edx
call fcn.004097d0
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.0040b0c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4160c3
jmp 0x4160c5
jmp 0x416093
push 4
lea ecx, [ebp - 0x1c]
call fcn.00405ed0
push 0x682600
call fcn.00403a00
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040af50
mov byte [ebp - 4], 4
push 4
lea ecx, [ebp - 0x18]
call fcn.00405ed0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.0040a8f0
add esp, 0xc
mov byte [ebp - 4], 5
push 0x114
call fcn.00615b07
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x41612e
mov ecx, dword [ebp - 0x34]
call fcn.004162c0
mov dword [ebp - 0x38], eax
jmp 0x416135
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 0xc]
mov dword [ecx], edx
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
push 0x415d70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x6adee0], eax
push 0x34
call fcn.00615b07
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x41617f
mov ecx, dword [ebp - 0x3c]
call fcn.004162f0
mov dword [ebp - 0x40], eax
jmp 0x416186
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x24], ecx
push 0x6ade60
mov ecx, dword [ebp - 0x24]
call fcn.00410560
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
lea edx, [ebp - 0x18]
push edx
call fcn.0040b050
lea eax, [ebp - 0x70]
push eax
call fcn.00408200
add esp, 8
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
call fcn.00406790
lea ecx, [ebp - 0x70]
call fcn.00404be0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x30], ecx
push 0
push 0
mov edx, dword [ebp - 0x24]
push edx
push 0x415ee0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x6adee4], eax
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x41621d
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x10c], 1
push 0xffffffffffffffff
mov edx, dword [0x6adee4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x18]
call fcn.0040b0c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41626c
mov byte [ebp - 0x1e], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0040af30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.0040af30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040af30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040af30
mov al, byte [ebp - 0x1e]
jmp 0x4162a6
mov byte [ebp - 0x1f], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0040af30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.0040af30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040af30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040af30
mov al, byte [ebp - 0x1f]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006158c5
mov esp, ebp
pop ebp
ret