Function at 0x46c5c0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9372
mov eax, dword fs:[0]
push eax
sub esp, 0x538
mov eax, dword [0x54a800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5609a4]
mov edi, 0x55b0f0
test eax, eax
jne 0x46c9a3
cmp dword [0x55b0bc], 8
mov esi, 0x55b0a8
mov edx, esi
mov dword [ebp - 0x14], 7
cmovae edx, dword [0x55b0a8]
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x46c62b
xor ecx, ecx
jmp 0x46c649
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x408], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c636
sub ecx, dword [ebp - 0x408]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0046b720
push 0x2a
push str._GraphicsDriver.7D3D9_SkipPregameVideos1
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004706e0
cmp dword [0x55b0bc], 8
mov edx, esi
mov dword [ebp - 0x40c], 7
cmovae edx, dword [0x55b0a8]
xor eax, eax
mov dword [ebp - 0x410], 0
mov word [ebp - 0x420], ax
cmp word [edx], ax
jne 0x46c69f
xor ecx, ecx
jmp 0x46c6c3
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x408], eax
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c6b0
sub ecx, dword [ebp - 0x408]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x420]
call fcn.0046b720
lea edx, [ebp - 0x420]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.00478910
mov byte [ebp - 4], 2
sub esp, 0x18
movdqu xmm0, xmmword [eax]
mov ecx, esp
push str.Starting__s
movdqu xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
call fcn.00477e30
add esp, 0x1c
cmp dword [ebp - 0x43c], 0x10
jb 0x46c724
push dword [ebp - 0x450]
call fcn.004cd56c
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x40c], 8
mov dword [ebp - 0x43c], 0xf
mov dword [ebp - 0x440], 0
mov byte [ebp - 0x450], 0
jb 0x46c75a
push dword [ebp - 0x420]
call fcn.004cd56c
add esp, 4
cmp dword [0x55b104], 8
mov edx, edi
mov dword [ebp - 0x424], 7
cmovae edx, dword [0x55b0f0]
xor eax, eax
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [edx], ax
jne 0x46c790
xor ecx, ecx
jmp 0x46c7b3
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x408], eax
jmp 0x46c7a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c7a0
sub ecx, dword [ebp - 0x408]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.0046b720
lea edx, [ebp - 0x438]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x468]
call fcn.00478910
mov byte [ebp - 4], 4
sub esp, 0x18
movdqu xmm0, xmmword [eax]
mov ecx, esp
push str.Using__s
movdqu xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
call fcn.00477e30
add esp, 0x1c
cmp dword [ebp - 0x454], 0x10
jb 0x46c814
push dword [ebp - 0x468]
call fcn.004cd56c
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x424], 8
mov dword [ebp - 0x454], 0xf
mov dword [ebp - 0x458], 0
mov byte [ebp - 0x468], 0
jb 0x46c84a
push dword [ebp - 0x438]
call fcn.004cd56c
add esp, 4
push 0x40
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0
push 0
push eax
call fcn.004d36e0
add esp, 0xc
lea edx, [ebp - 0x400]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, esi
xorps xmm0, xmm0
cmovae ecx, dword [ebp - 0x28]
cmp dword [0x55b0bc], 8
push edx
cmovae eax, dword [0x55b0a8]
lea edx, [ebp - 0x108]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
movdqu xmmword [ebp - 0x400], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x46c956
cmp dword [0x55b0bc], 8
lea ecx, [ebp - 0x4b0]
cmovae esi, dword [0x55b0a8]
push esi
call fcn.0046b820
lea edx, [ebp - 0x4b0]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x480]
call fcn.00478910
mov byte [ebp - 4], 6
sub esp, 0x18
movdqu xmm0, xmmword [eax]
mov ecx, esp
push str.Error:_Could_not_start__s
movdqu xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
call fcn.00477e30
add esp, 0x1c
cmp dword [ebp - 0x46c], 0x10
jb 0x46c925
push dword [ebp - 0x480]
call fcn.004cd56c
add esp, 4
cmp dword [ebp - 0x49c], 8
mov dword [ebp - 0x46c], 0xf
mov dword [ebp - 0x470], 0
mov byte [ebp - 0x480], 0
jb 0x46c972
push dword [ebp - 0x4b0]
call fcn.004cd56c
jmp 0x46c96f
mov eax, dword [ebp - 0x3f8]
mov dword [0x5609a8], eax
test eax, eax
jne 0x46c989
push str.Error:_PID_is_NULL
call fcn.00477e30
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x46cd5e
push dword [ebp - 0x28]
call fcn.004cd56c
jmp 0x46cd5b
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x46c9bb
push dword [ebp - 0x28]
call fcn.004cd56c
add esp, 4
jmp 0x46c9bb
push eax
push str.Attaching_to_PID__d
call fcn.00477e30
mov eax, dword [0x5609a4]
add esp, 8
mov dword [0x5609a8], eax
cmp byte [0x55b050], 0
je 0x46cd51
cmp dword [0x55b104], 8
mov eax, edi
cmovae eax, dword [0x55b0f0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46cd4a
test al, 0x10
jne 0x46cd4a
push 0x98
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.004d36e0
add esp, 0xc
lea ecx, [ebp - 0xc0]
push 1
push 2
call fcn.0046faa0
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x498]
cmp dword [0x55b104], 8
cmovae edi, dword [0x55b0f0]
push edi
call fcn.0046b820
sub esp, 0x18
mov byte [ebp - 4], 8
lea edx, [ebp - 0x498]
mov ecx, esp
call fcn.00478910
lea ecx, [ebp - 0xc0]
call fcn.00478520
add esp, 0x18
mov byte [ebp - 4], 7
cmp dword [ebp - 0x484], 8
jb 0x46ca73
push dword [ebp - 0x498]
call fcn.004cd56c
add esp, 4
lea eax, [ebp - 0x4c8]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0046fc50
cmp dword [ebp - 0x4b4], 0x10
mov esi, dword [eax + 0x10]
jb 0x46ca9f
push dword [ebp - 0x4c8]
call fcn.004cd56c
add esp, 4
test esi, esi
je 0x46cd2c
push 0x238
lea eax, [ebp - 0x3f0]
push 0
push eax
call fcn.004d36e0
add esp, 0xc
lea ecx, [ebp - 0x3f0]
call fcn.0047a3b0
push ecx
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x3f0]
push dword [0x5609a8]
call fcn.0047a770
mov edx, 1
push 1
lea ecx, [edx + 5]
call fcn.00476880
add esp, 4
test al, al
je 0x46cccf
cmp dword [0x5609b0], 0
jne 0x46cccf
push str.Preparing_to_attach..
call fcn.00477e30
add esp, 4
lea ecx, [ebp - 0x3f0]
call fcn.0047a920
push str.Attaching_Bot_to_Game
call fcn.00477e30
add esp, 4
lea eax, [ebp - 0x510]
lea ecx, [ebp - 0xc0]
push eax
call fcn.0046fc50
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x46cb48
mov eax, dword [eax]
sub esp, 8
push 0x4005
push ecx
push eax
push ecx
lea ecx, [ebp - 0x268]
call fcn.0047b630
test eax, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x510]
sete byte [ebp - 0x401]
call fcn.00476a40
cmp byte [ebp - 0x401], 0
je 0x46cc9b
push 0xb0
lea eax, [ebp - 0x1b8]
push 0
push eax
call fcn.004d36e0
add esp, 4
lea ecx, [ebp - 0x1b8]
call fcn.004702d0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x4e0]
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0xbf4]
call fcn.00480c20
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x540]
call fcn.00478910
push eax
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x1a8]
mov ecx, dword fs:[0x18]
push ecx
push 0x5310c4
push ecx
push dword [ecx + 0xbf4]
push ecx
push str.Mapping_failed_with_error_0x
push eax
call fcn.00472e90
add esp, 8
mov ecx, eax
call fcn.0046f040
mov ecx, eax
call fcn.0046f070
add esp, 4
push eax
call fcn.00472e90
add esp, 0xc
push eax
call fcn.00473150
add esp, 8
lea ecx, [ebp - 0x540]
call fcn.00476a40
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 0xb
call fcn.0046b210
lea eax, [ebp - 0x528]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00470400
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 0x10
jb 0x46cc59
mov eax, dword [eax]
push eax
call fcn.00477e30
add esp, 4
lea ecx, [ebp - 0x528]
call fcn.00476a40
lea ecx, [ebp - 0x1b8]
call fcn.0046c5a0
lea ecx, [ebp - 0x3f0]
mov byte [ebp - 4], 7
xor esi, esi
call fcn.0047a5b0
lea ecx, [ebp - 0xc0]
call fcn.0046c540
mov eax, esi
jmp 0x46cd60
push str.Attaching_Successfull
call fcn.00477e30
mov esi, dword [0x5609a8]
lea ecx, [ebp - 0x3f0]
add esp, 4
mov byte [ebp - 4], 7
call fcn.0047a5b0
lea ecx, [ebp - 0xc0]
call fcn.0046c540
mov eax, esi
jmp 0x46cd60
push str.Warning:_Using_Compatibility_Mode
call fcn.00477e30
add esp, 4
lea eax, [ebp - 0x4f8]
lea ecx, [ebp - 0xc0]
push eax
call fcn.0046fc50
cmp dword [eax + 0x14], 0x10
jb 0x46ccf6
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp - 0x3f0]
mov edx, eax
push esi
call fcn.00476ba0
lea ecx, [ebp - 0x4f8]
call fcn.00476a40
lea ecx, [ebp - 0x3f0]
mov byte [ebp - 4], 7
call fcn.0047a5b0
lea ecx, [ebp - 0xc0]
call fcn.0046c540
jmp 0x46cd5e
push str.Error:_DLLSize_is_Zero_
call fcn.00477e30
add esp, 4
lea ecx, [ebp - 0xc0]
xor esi, esi
call fcn.0046c540
mov eax, esi
jmp 0x46cd60
push str.Error:_No_Valid_Minion.dat_found_
jmp 0x46cd56
push str.Info:_Not_attaching_bot__as_instructed.
call fcn.00477e30
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cd571
mov esp, ebp
pop ebp
ret