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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f95a6
mov eax, dword fs:[0]
push eax
sub esp, 0x9d8
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
push 0x238
lea eax, [ebp - 0x7a0]
push 0
push eax
call fcn.004d36e0
add esp, 0xc
lea ecx, [ebp - 0x7a0]
call fcn.0047a3b0
mov dword [ebp - 4], 0
mov edi, 0x55b0f0
mov eax, dword [0x5609a4]
test eax, eax
jne 0x46dd35
cmp dword [0x55b0bc], 8
mov esi, 0x55b0a8
mov edx, esi
mov dword [ebp - 0x7c0], 7
cmovae edx, dword [0x55b0a8]
mov dword [ebp - 0x7c4], eax
mov word [ebp - 0x7d4], ax
cmp word [edx], ax
jne 0x46d54c
xor ecx, ecx
jmp 0x46d56a
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x7bc], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46d557
sub ecx, dword [ebp - 0x7bc]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x7d4]
call fcn.0046b720
lea edx, [ebp - 0x7d4]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x834]
call fcn.00478910
mov byte [ebp - 4], 2
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 - 0x820], 0x10
jb 0x46d5cb
push dword [ebp - 0x834]
call fcn.004cd56c
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x7c0], 8
mov dword [ebp - 0x820], 0xf
mov dword [ebp - 0x824], 0
mov byte [ebp - 0x834], 0
jb 0x46d601
push dword [ebp - 0x7d4]
call fcn.004cd56c
add esp, 4
cmp dword [0x55b104], 8
mov edx, edi
mov dword [ebp - 0x7d8], 7
cmovae edx, dword [0x55b0f0]
xor eax, eax
mov dword [ebp - 0x7dc], 0
mov word [ebp - 0x7ec], ax
cmp word [edx], ax
jne 0x46d637
xor ecx, ecx
jmp 0x46d655
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x7bc], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46d642
sub ecx, dword [ebp - 0x7bc]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x7ec]
call fcn.0046b720
lea edx, [ebp - 0x7ec]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x81c]
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 - 0x808], 0x10
jb 0x46d6b6
push dword [ebp - 0x81c]
call fcn.004cd56c
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x7d8], 8
mov dword [ebp - 0x808], 0xf
mov dword [ebp - 0x80c], 0
mov byte [ebp - 0x81c], 0
jb 0x46d6ec
push dword [ebp - 0x7ec]
call fcn.004cd56c
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
push eax
push 0x530f30
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.0046b720
push 0x7a
push str.__AppId100001900__AppName_FF14__Game....game_ffxiv.exe__RepairExe...._ffxivrepair.exe__SingletonNameFFXIVSingleton
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.004706e0
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
push eax
mov byte [ebp - 4], 6
call fcn.004cdd95
add esp, 4
push eax
call fcn.004cdd85
add esp, 4
call fcn.004cdd64
cdq
mov ecx, 0x2710
idiv ecx
lea ecx, [ebp - 0x8c4]
inc edx
call fcn.004767b0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.00470610
mov byte [ebp - 4], 6
cmp dword [ebp - 0x8b0], 8
jb 0x46d790
push dword [ebp - 0x8c4]
call fcn.004cd56c
add esp, 4
push 0x10
push str.__LauncherFlag0
lea ecx, [ebp - 0x40]
call fcn.004706e0
push 0x40
lea eax, [ebp - 0x1cc]
mov dword [ebp - 0x1d0], 0
push 0
push eax
call fcn.004d36e0
add esp, 0xc
lea edx, [ebp - 0x7b0]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov eax, esi
xorps xmm0, xmm0
cmovae ecx, dword [ebp - 0x40]
cmp dword [0x55b0bc], 8
push edx
cmovae eax, dword [0x55b0a8]
lea edx, [ebp - 0x1d0]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
movdqu xmmword [ebp - 0x7b0], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x46d8b5
cmp dword [0x55b0bc], 8
lea ecx, [ebp - 0x864]
cmovae esi, dword [0x55b0a8]
push esi
call fcn.0046b820
lea edx, [ebp - 0x864]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x804]
call fcn.00478910
mov byte [ebp - 4], 9
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 - 0x7f0], 0x10
jb 0x46d87a
push dword [ebp - 0x804]
call fcn.004cd56c
add esp, 4
cmp dword [ebp - 0x850], 8
mov dword [ebp - 0x7f0], 0xf
mov dword [ebp - 0x7f4], 0
mov byte [ebp - 0x804], 0
jb 0x46dd1b
push dword [ebp - 0x864]
call fcn.004cd56c
add esp, 4
jmp 0x46dd1b
mov esi, dword [ebp - 0x7a8]
mov dword [ebp - 0x7bc], esi
test esi, esi
jne 0x46d8d7
push str.Error:_FFXIVLauncherPID_is_NULL
call fcn.00477e30
add esp, 4
jmp 0x46dd1b
sub esp, 0x18
mov ecx, esp
push str.sdologin.exe
call fcn.0046b820
push 1
mov edx, 0xea60
mov ecx, esi
call fcn.00478110
add esp, 0x1c
test eax, eax
jne 0x46d90d
push str.Error:_sdoPid_is_NULL
call fcn.00477e30
add esp, 4
jmp 0x46dd1b
push ecx
push eax
lea ecx, [ebp - 0x7a0]
call fcn.0047a770
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push 0x55b0f0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0046b300
push ecx
push str.Minion.dat
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.0046efb0
cmp eax, 0xffffffff
jne 0x46d966
push str.Error:_parsing_Minion.dat
call fcn.00477e30
add esp, 4
jmp 0x46dd13
push 0x12
push str.MinionLauncher.dat
push 0xa
push eax
lea ecx, [ebp - 0x28]
call fcn.004707c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x8ac]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0046b820
lea edx, [ebp - 0x8ac]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x8dc]
call fcn.00478910
mov byte [ebp - 4], 0xc
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
lea ecx, [ebp - 0x8dc]
call fcn.00476a40
lea ecx, [ebp - 0x8ac]
mov byte [ebp - 4], 0xa
call fcn.0046b210
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.00478500
test al, al
jne 0x46da69
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x894]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0046b820
lea edx, [ebp - 0x894]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x96c]
call fcn.00478910
mov byte [ebp - 4], 0xe
sub esp, 0x18
movdqu xmm0, xmmword [eax]
mov ecx, esp
push str.Error:_MinionLauncher.dat_does_not_exist:__s
movdqu xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
call fcn.00477e30
add esp, 0x1c
lea ecx, [ebp - 0x96c]
call fcn.00476a40
lea ecx, [ebp - 0x894]
call fcn.0046b210
jmp 0x46dd13
push 0x98
lea eax, [ebp - 0x188]
push 0
push eax
call fcn.004d36e0
add esp, 0xc
lea ecx, [ebp - 0x188]
push 1
push 2
call fcn.0046faa0
sub esp, 0x18
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x28]
mov ecx, esp
call fcn.00478910
lea ecx, [ebp - 0x188]
call fcn.00478520
add esp, 0x18
lea eax, [ebp - 0x8f4]
lea ecx, [ebp - 0x188]
push eax
call fcn.0046fc50
lea ecx, [ebp - 0x8f4]
mov esi, dword [eax + 0x10]
call fcn.00476a40
test esi, esi
je 0x46dcfb
push str.Preparing_to_attach_to_SDOLauncher..
call fcn.00477e30
add esp, 4
lea ecx, [ebp - 0x7a0]
call fcn.0047a920
push str.Attaching_to_SDOLauncher
call fcn.00477e30
add esp, 4
lea eax, [ebp - 0x924]
lea ecx, [ebp - 0x188]
push eax
call fcn.0046fc50
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x14], 0x10
jb 0x46db18
mov eax, dword [eax]
sub esp, 8
push 0x4005
push ecx
push eax
push ecx
lea ecx, [ebp - 0x618]
call fcn.0047b630
test eax, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x924]
sete byte [ebp - 0x7b1]
call fcn.00476a40
cmp byte [ebp - 0x7b1], 0
je 0x46dc4d
push 0xb0
lea eax, [ebp - 0x330]
push 0
push eax
call fcn.004d36e0
add esp, 4
lea ecx, [ebp - 0x330]
call fcn.004702d0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x984]
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0xbf4]
call fcn.00480c20
mov edx, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x954]
call fcn.00478910
push eax
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x320]
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 - 0x954]
call fcn.00476a40
lea ecx, [ebp - 0x984]
mov byte [ebp - 4], 0x11
call fcn.0046b210
lea eax, [ebp - 0x9b4]
push eax
lea ecx, [ebp - 0x330]
call fcn.00470400
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x14], 0x10
jb 0x46dc29
mov eax, dword [eax]
push eax
call fcn.00477e30
add esp, 4
lea ecx, [ebp - 0x9b4]
call fcn.00476a40
lea ecx, [ebp - 0x330]
call fcn.0046c5a0
jmp 0x46dd08
push str.Attaching_to_SDOLauncher_Successfull
call fcn.00477e30
sub esp, 0x14
mov ecx, esp
push str.ffxiv.exe
call fcn.0046b820
mov ecx, dword [ebp - 0x7bc]
mov edx, 0xea60
push 1
call fcn.00478110
add esp, 0x1c
mov dword [0x5609a8], eax
push eax
push str.PID1_is__d
call fcn.00477e30
sub esp, 0x10
mov ecx, esp
push str.ffxiv.exe
call fcn.0046b820
mov ecx, dword [ebp - 0x7bc]
mov edx, 0x2710
push 0
call fcn.00478110
add esp, 0x1c
mov dword [0x5609a8], eax
push eax
push str.PID2_is__d
call fcn.00477e30
add esp, 8
cmp dword [0x5609a8], 0
jne 0x46dcd2
push str.Error:_PID_is_NULL
jmp 0x46dd00
lea ecx, [ebp - 0x188]
call fcn.0046c540
lea ecx, [ebp - 0x28]
call fcn.0046b210
lea ecx, [ebp - 0x58]
call fcn.0046b210
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0046b210
jmp 0x46dd4d
push str.Error:_minionlauncherdat_size_is_Zero_
call fcn.00477e30
add esp, 4
lea ecx, [ebp - 0x188]
call fcn.0046c540
lea ecx, [ebp - 0x28]
call fcn.0046b210
cmp dword [ebp - 0x2c], 8
jb 0x46e147
push dword [ebp - 0x40]
call fcn.004cd56c
add esp, 4
jmp 0x46e147
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 0x46e126
push str.Attaching_Bot...
call fcn.00477e30
add esp, 4
mov eax, edi
cmp dword [0x55b104], 8
cmovae eax, dword [0x55b0f0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46e11f
test al, 0x10
jne 0x46e11f
push 0x98
lea eax, [ebp - 0xf0]
push 0
push eax
call fcn.004d36e0
add esp, 0xc
lea ecx, [ebp - 0xf0]
push 1
push 2
call fcn.0046faa0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x84c]
cmp dword [0x55b104], 8
cmovae edi, dword [0x55b0f0]
push edi
call fcn.0046b820
sub esp, 0x18
mov byte [ebp - 4], 0x16
lea edx, [ebp - 0x84c]
mov ecx, esp
call fcn.00478910
lea ecx, [ebp - 0xf0]
call fcn.00478520
add esp, 0x18
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0x838], 8
jb 0x46de0f
push dword [ebp - 0x84c]
call fcn.004cd56c
add esp, 4
lea eax, [ebp - 0x87c]
push eax
lea ecx, [ebp - 0xf0]
call fcn.0046fc50
cmp dword [ebp - 0x868], 0x10
mov esi, dword [eax + 0x10]
jb 0x46de3b
push dword [ebp - 0x87c]
call fcn.004cd56c
add esp, 4
test esi, esi
je 0x46e0ef
push 0x238
lea eax, [ebp - 0x568]
push 0
push eax
call fcn.004d36e0
add esp, 0xc
lea ecx, [ebp - 0x568]
call fcn.0047a3b0
push ecx
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x568]
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 0x46e07b
cmp dword [0x5609b0], 0
jne 0x46e07b
push str.Preparing_to_attach..
call fcn.00477e30
add esp, 4
lea ecx, [ebp - 0x568]
call fcn.0047a920
push str.Attaching_Bot_to_Game
call fcn.00477e30
add esp, 4
lea eax, [ebp - 0x9e4]
lea ecx, [ebp - 0xf0]
push eax
call fcn.0046fc50
mov byte [ebp - 4], 0x18
cmp dword [eax + 0x14], 0x10
jb 0x46dee4
mov eax, dword [eax]
sub esp, 8
push 0x4005
push ecx
push eax
push ecx
lea ecx, [ebp - 0x3e0]
call fcn.0047b630
test eax, eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x9e4]
sete byte [ebp - 0x7b1]
call fcn.00476a40
cmp byte [ebp - 0x7b1], 0
je 0x46e035
push 0xb0
lea eax, [ebp - 0x280]
push 0
push eax
call fcn.004d36e0
add esp, 4
lea ecx, [ebp - 0x280]
call fcn.004702d0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x9cc]
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0xbf4]
call fcn.00480c20
mov edx, eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x90c]
call fcn.00478910
push eax
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x270]
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 - 0x90c]
call fcn.00476a40
lea ecx, [ebp - 0x9cc]
mov byte [ebp - 4], 0x19
call fcn.0046b210
lea eax, [ebp - 0x93c]
push eax
lea ecx, [ebp - 0x280]
call fcn.00470400
mov byte [ebp - 4], 0x1c
cmp dword [eax + 0x14], 0x10
jb 0x46dff5
mov eax, dword [eax]
push eax
call fcn.00477e30
add esp, 4
lea ecx, [ebp - 0x93c]
call fcn.00476a40
lea ecx, [ebp - 0x280]
call fcn.0046c5a0
lea ecx, [ebp - 0x568]
mov byte [ebp - 4], 0x15
xor esi, esi
call fcn.0047a5b0
lea ecx, [ebp - 0xf0]
call fcn.0046c540
jmp 0x46e149
push str.Attaching_Successfull
call fcn.00477e30
sub esp, 0x14
mov ecx, esp
push str.sndaloginguard.exe
call fcn.0046b820
call fcn.004782f0
mov esi, dword [0x5609a8]
lea ecx, [ebp - 0x568]
add esp, 0x18
mov byte [ebp - 4], 0x15
call fcn.0047a5b0
lea ecx, [ebp - 0xf0]
call fcn.0046c540
jmp 0x46e149
push str.Warning:_Using_Compatibility_Mode
call fcn.00477e30
add esp, 4
lea eax, [ebp - 0x99c]
lea ecx, [ebp - 0xf0]
push eax
call fcn.0046fc50
cmp dword [eax + 0x14], 0x10
jb 0x46e0a2
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp - 0x568]
mov edx, eax
push esi
call fcn.00476ba0
lea ecx, [ebp - 0x99c]
call fcn.00476a40
sub esp, 0x18
mov ecx, esp
push str.sndaloginguard.exe
call fcn.0046b820
call fcn.004782f0
add esp, 0x18
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x568]
call fcn.0047a5b0
lea ecx, [ebp - 0xf0]
call fcn.0046c540
jmp 0x46e147
push str.Error:_DLLSize_is_Zero_
call fcn.00477e30
sub esp, 0x14
mov ecx, esp
push str.sndaloginguard.exe
call fcn.0046b820
call fcn.004782f0
add esp, 0x18
lea ecx, [ebp - 0xf0]
xor esi, esi
call fcn.0046c540
jmp 0x46e149
push str.Error:_No_Valid_FFXIVMinion.dat_found_
jmp 0x46e12b
push str.Info:_Not_attaching_bot__as_instructed.
call fcn.00477e30
sub esp, 0x14
mov ecx, esp
push str.sndaloginguard.exe
call fcn.0046b820
call fcn.004782f0
add esp, 0x18
xor esi, esi
lea ecx, [ebp - 0x7a0]
mov dword [ebp - 4], 0xffffffff
call fcn.0047a5b0
mov eax, esi
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