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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f943a
mov eax, dword fs:[0]
push eax
sub esp, 0x520
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 esi, 0x55b0f0
test eax, eax
jne 0x46d0d8
cmp dword [0x55b0bc], 8
mov edi, 0x55b0a8
mov edx, edi
mov dword [ebp - 0x40c], 7
cmovae edx, dword [0x55b0a8]
mov dword [ebp - 0x410], eax
mov word [ebp - 0x420], ax
cmp word [edx], ax
jne 0x46cdf4
xor ecx, ecx
jmp 0x46ce13
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x3f0], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ce00
sub ecx, dword [ebp - 0x3f0]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x420]
call fcn.0046b720
lea edx, [ebp - 0x420]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.00478910
mov byte [ebp - 4], 1
sub esp, 0x18
movdqu xmm0, xmmword [eax]
mov ecx, esp
push str.Starting_dfgd__s
movdqu xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
call fcn.00477e30
add esp, 0x1c
cmp dword [ebp - 0x424], 0x10
jb 0x46ce77
push dword [ebp - 0x438]
call fcn.004cd56c
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x40c], 8
mov dword [ebp - 0x424], 0xf
mov dword [ebp - 0x428], 0
mov byte [ebp - 0x438], 0
jb 0x46ceb0
push dword [ebp - 0x420]
call fcn.004cd56c
add esp, 4
cmp dword [0x55b104], 8
mov edx, esi
mov dword [ebp - 0x3f4], 7
cmovae edx, dword [0x55b0f0]
xor eax, eax
mov dword [ebp - 0x3f8], 0
mov word [ebp - 0x408], ax
cmp word [edx], ax
jne 0x46cee6
xor ecx, ecx
jmp 0x46cf04
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x3f0], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46cef1
sub ecx, dword [ebp - 0x3f0]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x408]
call fcn.0046b720
lea edx, [ebp - 0x408]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x450]
call fcn.00478910
mov byte [ebp - 4], 3
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 - 0x43c], 0x10
jb 0x46cf68
push dword [ebp - 0x450]
call fcn.004cd56c
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x3f4], 8
mov dword [ebp - 0x43c], 0xf
mov dword [ebp - 0x440], 0
mov byte [ebp - 0x450], 0
jb 0x46cfa1
push dword [ebp - 0x408]
call fcn.004cd56c
add esp, 4
push 0x40
lea eax, [ebp - 0xec]
mov dword [ebp - 0xf0], 0
push 0
push eax
call fcn.004d36e0
add esp, 0xc
lea edx, [ebp - 0x3e8]
cmp dword [0x55b0ec], 8
mov ecx, 0x55b0d8
mov eax, edi
xorps xmm0, xmm0
cmovae ecx, dword [0x55b0d8]
cmp dword [0x55b0bc], 8
push edx
cmovae eax, dword [0x55b0a8]
lea edx, [ebp - 0xf0]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
movdqu xmmword [ebp - 0x3e8], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x46d0bf
cmp dword [0x55b0bc], 8
lea ecx, [ebp - 0x498]
cmovae edi, dword [0x55b0a8]
push edi
call fcn.0046b820
lea edx, [ebp - 0x498]
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x468]
call fcn.00478910
mov byte [ebp - 4], 5
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 - 0x454], 0x10
jb 0x46d087
push dword [ebp - 0x468]
call fcn.004cd56c
add esp, 4
cmp dword [ebp - 0x484], 8
mov dword [ebp - 0x454], 0xf
mov dword [ebp - 0x458], 0
mov byte [ebp - 0x468], 0
jb 0x46d493
push dword [ebp - 0x498]
call fcn.004cd56c
jmp 0x46d490
mov eax, dword [ebp - 0x3e0]
mov dword [0x5609a8], eax
test eax, eax
jne 0x46d0f0
push str.Error:_PID_is_NULL
jmp 0x46d48b
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 0x46d486
cmp dword [0x55b104], 8
mov eax, esi
cmovae eax, dword [0x55b0f0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46d47f
test al, 0x10
jne 0x46d47f
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004d36e0
add esp, 0xc
lea ecx, [ebp - 0xa8]
push 1
push 2
call fcn.0046faa0
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x480]
cmp dword [0x55b104], 8
cmovae esi, dword [0x55b0f0]
push esi
call fcn.0046b820
sub esp, 0x18
mov byte [ebp - 4], 7
lea edx, [ebp - 0x480]
mov ecx, esp
call fcn.00478910
lea ecx, [ebp - 0xa8]
call fcn.00478520
add esp, 0x18
mov byte [ebp - 4], 6
cmp dword [ebp - 0x46c], 8
jb 0x46d1a8
push dword [ebp - 0x480]
call fcn.004cd56c
add esp, 4
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0xa8]
call fcn.0046fc50
cmp dword [ebp - 0x49c], 0x10
mov esi, dword [eax + 0x10]
jb 0x46d1d4
push dword [ebp - 0x4b0]
call fcn.004cd56c
add esp, 4
test esi, esi
je 0x46d461
push 0x238
lea eax, [ebp - 0x3d8]
push 0
push eax
call fcn.004d36e0
add esp, 0xc
lea ecx, [ebp - 0x3d8]
call fcn.0047a3b0
push ecx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3d8]
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 0x46d404
cmp dword [0x5609b0], 0
jne 0x46d404
push str.Preparing_to_attach..
call fcn.00477e30
add esp, 4
lea ecx, [ebp - 0x3d8]
call fcn.0047a920
push str.Attaching_Bot_to_Game
call fcn.00477e30
add esp, 4
lea eax, [ebp - 0x4f8]
lea ecx, [ebp - 0xa8]
push eax
call fcn.0046fc50
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0x10
jb 0x46d27d
mov eax, dword [eax]
sub esp, 8
push 0x4005
push ecx
push eax
push ecx
lea ecx, [ebp - 0x250]
call fcn.0047b630
test eax, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4f8]
sete byte [ebp - 0x3e9]
call fcn.00476a40
cmp byte [ebp - 0x3e9], 0
je 0x46d3d0
push 0xb0
lea eax, [ebp - 0x1a0]
push 0
push eax
call fcn.004d36e0
add esp, 4
lea ecx, [ebp - 0x1a0]
call fcn.004702d0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x4c8]
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0xbf4]
call fcn.00480c20
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x528]
call fcn.00478910
push eax
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x190]
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 - 0x528]
call fcn.00476a40
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 0xa
call fcn.0046b210
lea eax, [ebp - 0x510]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.00470400
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 0x10
jb 0x46d38e
mov eax, dword [eax]
push eax
call fcn.00477e30
add esp, 4
lea ecx, [ebp - 0x510]
call fcn.00476a40
lea ecx, [ebp - 0x1a0]
call fcn.0046c5a0
lea ecx, [ebp - 0x3d8]
mov byte [ebp - 4], 6
xor esi, esi
call fcn.0047a5b0
lea ecx, [ebp - 0xa8]
call fcn.0046c540
mov eax, esi
jmp 0x46d495
push str.Attaching_Successfull
call fcn.00477e30
mov esi, dword [0x5609a8]
lea ecx, [ebp - 0x3d8]
add esp, 4
mov byte [ebp - 4], 6
call fcn.0047a5b0
lea ecx, [ebp - 0xa8]
call fcn.0046c540
mov eax, esi
jmp 0x46d495
push str.Warning:_Using_Compatibility_Mode
call fcn.00477e30
add esp, 4
lea eax, [ebp - 0x4e0]
lea ecx, [ebp - 0xa8]
push eax
call fcn.0046fc50
cmp dword [eax + 0x14], 0x10
jb 0x46d42b
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp - 0x3d8]
mov edx, eax
push esi
call fcn.00476ba0
lea ecx, [ebp - 0x4e0]
call fcn.00476a40
lea ecx, [ebp - 0x3d8]
mov byte [ebp - 4], 6
call fcn.0047a5b0
lea ecx, [ebp - 0xa8]
call fcn.0046c540
jmp 0x46d493
push str.Error:_DLLSize_is_Zero_
call fcn.00477e30
add esp, 4
lea ecx, [ebp - 0xa8]
xor esi, esi
call fcn.0046c540
mov eax, esi
jmp 0x46d495
push str.Error:_No_Valid_Minion.dat_found_
jmp 0x46d48b
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