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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e024b
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x513200]
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.004090f0
mov ecx, eax
call fcn.00409330
test al, al
jne 0x4137c8
mov ecx, esi
call fcn.0040efb0
test al, al
jne 0x4135a7
cmp byte [esi + 0x11c], al
lea eax, [esi + 0xc]
jne 0x413551
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413569
shr eax, 4
not al
and al, 1
jne 0x4135a7
cmp byte [esi + 0x11c], 0
je 0x413577
add esi, 0xc
jmp 0x41357a
mov esi, dword [esi + 8]
call fcn.00432730
mov dword [ebp - 4], 0
call fcn.00432730
cmp dword [eax + 0x124], 0
je 0x4137c8
push 1
lea ecx, [esi + 4]
call fcn.00433030
jmp 0x4137c8
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x413660
mov ecx, eax
mov eax, 0x4fd220
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4135e6
test dx, dx
je 0x4135e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4135e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4135c0
xor eax, eax
jmp 0x4135eb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41365a
lea ecx, [ebp - 0x134]
call fcn.0040e5f0
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00410b30
cmp dword [ebp - 0x130], 0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x12c]
jne 0x413625
xor eax, eax
jmp 0x413633
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 0x413660
lea edx, [ebp - 0x128]
cmp ecx, edx
je 0x413660
push ecx
call fcn.00496f41
add esp, 4
mov eax, dword [ebp - 0x138]
cmp byte [esi + 0x11c], 0
lea ebx, [esi + 0xc]
jne 0x41366f
mov ebx, dword [esi + 8]
mov ecx, dword [ebp - 0x13c]
add ebx, 4
mov esi, 0x4fc444
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 0x413694
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 0x4136b0
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 0x4136d0
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.004b5162
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 0x413722
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 0x413780
mov eax, ecx
push edi
shr eax, 1
push eax
push esi
call fcn.004b5162
add esp, 0xc
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x413762
sub edi, ecx
mov ecx, dword [ebp - 0x138]
sar edi, 1
lea edi, [edi*2 + 2]
jmp 0x413785
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 0x4137a9
sub ecx, edi
push eax
shr ecx, 1
push ecx
push esi
call fcn.004b5162
add esp, 0xc
mov eax, dword [ebp + 8]
push ebx
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x14]
push 0
push 0x412570
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], eax
call fcn.004dcb6f
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.00489940
mov esp, ebp
pop ebp
ret 0x14