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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5dab
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x519220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp + 0x10]
push 1
mov dword [ebp - 0x138], eax
call fcn.00409ad0
mov ecx, eax
call fcn.00409d30
test al, al
jne 0x414868
mov ecx, esi
call fcn.00410050
test al, al
jne 0x414647
cmp byte [esi + 0x11c], al
lea eax, [esi + 0xc]
jne 0x4145f1
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414609
shr eax, 4
not al
and al, 1
jne 0x414647
cmp byte [esi + 0x11c], 0
je 0x414617
add esi, 0xc
jmp 0x41461a
mov esi, dword [esi + 8]
call fcn.00434b60
mov dword [ebp - 4], 0
call fcn.00434b60
cmp dword [eax + 0x124], 0
je 0x414868
push 1
lea ecx, [esi + 4]
call fcn.00435460
jmp 0x414868
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x414700
mov ecx, eax
mov eax, 0x5033e8
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x414686
test dx, dx
je 0x414682
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x414686
add eax, 4
add ecx, 4
test dx, dx
jne 0x414660
xor eax, eax
jmp 0x41468b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4146fa
lea ecx, [ebp - 0x134]
call fcn.0040f690
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00411bd0
cmp dword [ebp - 0x130], 0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x12c]
jne 0x4146c5
xor eax, eax
jmp 0x4146d3
test dl, dl
lea eax, [ebp - 0x128]
cmove eax, ecx
add eax, 4
mov dword [ebp - 0x138], eax
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
test dl, dl
jne 0x414700
lea edx, [ebp - 0x128]
cmp ecx, edx
je 0x414700
push ecx
call fcn.0049c7b1
add esp, 4
mov eax, dword [ebp - 0x138]
cmp byte [esi + 0x11c], 0
lea ebx, [esi + 0xc]
jne 0x41470f
mov ebx, dword [esi + 8]
mov ecx, dword [ebp - 0x13c]
add ebx, 4
mov esi, 0x502554
test ecx, ecx
mov edi, esi
mov edx, ebx
cmovne edi, ecx
test eax, eax
cmovne esi, eax
mov dword [ebp - 0x140], esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x414734
sub edx, ecx
mov ecx, edi
sar edx, 1
lea eax, [ecx + 2]
mov dword [ebp - 0x13c], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414750
sub ecx, dword [ebp - 0x13c]
lea eax, [esi + 2]
sar ecx, 1
mov dword [ebp - 0x13c], eax
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x414770
sub esi, dword [ebp - 0x13c]
sar esi, 1
lea eax, [esi + ecx]
add eax, edx
lea esi, [eax*2 + 0x1a]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [esi - 0x14]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], ecx
push ebx
shr ecx, 1
lea esi, [eax + 0x14]
push ecx
push esi
call fcn.004ba9d2
mov eax, dword [ebp - 0x13c]
lea ecx, [ebx + 2]
add esp, 0xc
mov dword [eax], esi
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4147c2
sub ebx, ecx
mov ecx, dword [ebp - 0x138]
sar ebx, 1
lea esi, [esi + ebx*2]
lea eax, [ebx*2 + 2]
add esi, 2
sub ecx, eax
mov dword [ebp - 0x138], ecx
test edi, edi
je 0x414820
mov eax, ecx
push edi
shr eax, 1
push eax
push esi
call fcn.004ba9d2
add esp, 0xc
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x414802
sub edi, ecx
mov ecx, dword [ebp - 0x138]
sar edi, 1
lea edi, [edi*2 + 2]
jmp 0x414825
mov edi, 1
mov ebx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x140]
mov dword [ebx + 8], esi
add esi, edi
test eax, eax
je 0x414849
sub ecx, edi
push eax
shr ecx, 1
push ecx
push esi
call fcn.004ba9d2
add esp, 0xc
mov eax, dword [ebp + 8]
push ebx
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x14]
push 0
push 0x413610
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], eax
call fcn.004e23ef
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048f1b0
mov esp, ebp
pop ebp
ret 0x14