Function at 0x519870
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b0253
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x89b044]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x25c], ecx
cmp dword [ebp + 8], 0
jne 0x5198ae
xor eax, eax
jmp 0x51a0af
lea ecx, [ebp - 0xa8]
call fcn.0041ca70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.0041ca70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0041ca70
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5199e5
push 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xcc]
push edx
call fcn.0060c9b0
add esp, 0xc
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004217c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.00407400
push 0
call fcn.0043cd80
mov ecx, eax
call fcn.0043ad40
push eax
lea edx, [ebp - 0xe8]
push edx
call fcn.0060cce0
add esp, 0xc
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.004217c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe8]
call fcn.00407400
push 0
call fcn.0043cd80
mov ecx, eax
call fcn.0043ad60
push eax
lea edx, [ebp - 0x104]
push edx
call fcn.0060cce0
add esp, 0xc
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.004217c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x104]
call fcn.00407400
jmp 0x519caf
push 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xac]
push eax
call fcn.0060d310
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xac]
call fcn.00404e70
push eax
call fcn.00623a40
add esp, 4
push eax
lea ecx, [ebp - 0xb0]
call fcn.0041b2a0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xb0]
call fcn.0041b2d0
test eax, eax
jne 0x519aa2
mov ecx, dword [ebp + 8]
push ecx
push 0x7f11a0
call fcn.00609060
add esp, 8
mov dword [ebp - 0x108], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xb0]
call fcn.0041b2b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xac]
call fcn.00403420
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00407400
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00407400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.00407400
mov eax, dword [ebp - 0x108]
jmp 0x51a0af
push 0x7f0a27
lea ecx, [ebp - 0x124]
call fcn.00406ba0
mov byte [ebp - 4], 8
push 0x7f1094
lea ecx, [ebp - 0x140]
call fcn.00406ba0
mov byte [ebp - 4], 9
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0xb0]
call fcn.0041b2d0
push eax
lea ecx, [ebp - 0x15c]
push ecx
call fcn.00621730
add esp, 0x10
mov dword [ebp - 0x278], eax
mov edx, dword [ebp - 0x278]
mov dword [ebp - 0x27c], edx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x34]
call fcn.004217c0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x15c]
call fcn.00407400
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x140]
call fcn.00407400
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x124]
call fcn.00407400
push 0x7f0a3a
lea ecx, [ebp - 0x178]
call fcn.00406ba0
mov byte [ebp - 4], 0xb
push 0x7f123c
lea ecx, [ebp - 0x194]
call fcn.00406ba0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x178]
push ecx
lea edx, [ebp - 0x194]
push edx
lea ecx, [ebp - 0xb0]
call fcn.0041b2d0
push eax
lea eax, [ebp - 0x1b0]
push eax
call fcn.00621730
add esp, 0x10
mov dword [ebp - 0x280], eax
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 0x284], ecx
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x284]
push edx
lea ecx, [ebp - 0x8c]
call fcn.004217c0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1b0]
call fcn.00407400
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x194]
call fcn.00407400
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x178]
call fcn.00407400
push 0x7f0a3b
lea ecx, [ebp - 0x1cc]
call fcn.00406ba0
mov byte [ebp - 4], 0xe
push 0x7f1244
lea ecx, [ebp - 0x1e8]
call fcn.00406ba0
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0x1e8]
push ecx
lea ecx, [ebp - 0xb0]
call fcn.0041b2d0
push eax
lea edx, [ebp - 0x204]
push edx
call fcn.00621730
add esp, 0x10
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x28c], eax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x28c]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.004217c0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x204]
call fcn.00407400
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x1e8]
call fcn.00407400
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1cc]
call fcn.00407400
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xb0]
call fcn.0041b2b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xac]
call fcn.00403420
lea ecx, [ebp - 0x34]
call fcn.00420b10
movzx edx, al
test edx, edx
je 0x519d00
mov dword [ebp - 0x208], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00407400
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00407400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.00407400
mov eax, dword [ebp - 0x208]
jmp 0x51a0af
lea ecx, [ebp - 0x70]
call fcn.0041ca70
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.006148d0
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jg 0x519d8f
mov edx, dword [ebp - 0x14]
neg edx
push edx
lea ecx, [ebp - 0x34]
call fcn.00406c00
push eax
push str.CMainUIController::ExecuteGeneralCmd__read_command_file__s_failed__error_d
call fcn.00609060
add esp, 0xc
mov dword [ebp - 0x20c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00407400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00407400
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00407400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.00407400
mov eax, dword [ebp - 0x20c]
jmp 0x51a0af
lea ecx, [ebp - 0x70]
call fcn.00406c00
push eax
call fcn.00623a40
add esp, 4
push eax
lea ecx, [ebp - 0x54]
call fcn.0041b2a0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x54]
call fcn.0041b2d0
test eax, eax
jne 0x519e29
lea ecx, [ebp - 0x70]
call fcn.00406c00
push eax
push str.CMainUIController::ExecuteGeneralCmd__parse_command_file_failed___s
call fcn.00608b30
add esp, 8
mov dword [ebp - 0x210], 0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x54]
call fcn.0041b2b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00407400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00407400
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00407400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.00407400
mov eax, dword [ebp - 0x210]
jmp 0x51a0af
push 0x7f1340
lea ecx, [ebp - 0x54]
call fcn.0041b2d0
push eax
call fcn.00622b50
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x519ebf
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0xa8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x25c]
call fcn.0051b940
mov dword [ebp - 0x214], eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x54]
call fcn.0041b2b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00407400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00407400
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00407400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.00407400
mov eax, dword [ebp - 0x214]
jmp 0x51a0af
push 0x7f0a62
lea ecx, [ebp - 0x230]
call fcn.00406ba0
mov byte [ebp - 4], 0x13
push 0x7f1350
lea ecx, [ebp - 0x24c]
call fcn.00406ba0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x24c]
push edx
lea ecx, [ebp - 0x54]
call fcn.0041b2d0
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00621730
add esp, 0x10
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x24c]
call fcn.00407400
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x230]
call fcn.00407400
push 0x7f1358
lea ecx, [ebp - 0x50]
push ecx
call fcn.00439000
add esp, 8
movzx edx, al
test edx, edx
je 0x519fbf
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x54]
call fcn.0041b2d0
push eax
mov ecx, dword [ebp - 0x25c]
call fcn.0051af90
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x50]
call fcn.00407400
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x54]
call fcn.0041b2b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00407400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00407400
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00407400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.00407400
mov eax, dword [ebp - 0x250]
jmp 0x51a0af
push 0x7f1360
lea ecx, [ebp - 0x50]
push ecx
call fcn.00439000
add esp, 8
movzx edx, al
test edx, edx
je 0x51a04e
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x54]
call fcn.0041b2d0
push eax
mov ecx, dword [ebp - 0x25c]
call fcn.0051b7c0
mov dword [ebp - 0x254], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x50]
call fcn.00407400
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x54]
call fcn.0041b2b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00407400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00407400
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00407400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.00407400
mov eax, dword [ebp - 0x254]
jmp 0x51a0af
mov dword [ebp - 0x258], 0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x50]
call fcn.00407400
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x54]
call fcn.0041b2b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00407400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00407400
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00407400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.00407400
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0071fe0b
mov esp, ebp
pop ebp
ret 8