Function at 0x530610
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b359d
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x89b044]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x54]
call fcn.0040cd50
mov dword [ebp - 4], 0
push str.yeyou_cfg
lea ecx, [ebp - 0xe4]
call fcn.00403bf0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0xe4]
push ecx
call fcn.0043cd80
mov ecx, eax
call fcn.0043afa0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe4]
call fcn.00403c30
lea ecx, [ebp - 0x54]
call fcn.0041edf0
movzx edx, al
test edx, edx
jne 0x5306c1
mov dword [ebp - 0xe8], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00403c30
mov eax, dword [ebp - 0xe8]
jmp 0x530d96
push str.general_cmd
lea ecx, [ebp - 0x104]
call fcn.00403bf0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.0043cd80
mov ecx, eax
call fcn.0043afa0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x104]
call fcn.00403c30
lea ecx, [ebp - 0x54]
call fcn.0041edf0
movzx edx, al
test edx, edx
jne 0x53071d
lea ecx, [ebp - 0x54]
call fcn.00403c80
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x530741
mov dword [ebp - 0x108], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00403c30
mov eax, dword [ebp - 0x108]
jmp 0x530d96
lea ecx, [ebp - 0x38]
call fcn.0041ca70
mov byte [ebp - 4], 3
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x54]
push ecx
call fcn.00614780
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jg 0x530796
mov dword [ebp - 0x10c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00407400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00403c30
mov eax, dword [ebp - 0x10c]
jmp 0x530d96
lea ecx, [ebp - 0x38]
call fcn.00406c00
push eax
call fcn.00623a40
add esp, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.0041b2a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0041b2d0
test eax, eax
jne 0x5307fc
mov dword [ebp - 0x110], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.0041b2b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00407400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00403c30
mov eax, dword [ebp - 0x110]
jmp 0x530d96
push str.from_spec_cmd
lea ecx, [ebp - 0x18]
call fcn.0041b2d0
push eax
call fcn.00622b50
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x530c81
push 0
call fcn.0043cd80
mov ecx, eax
call fcn.0043ad40
push eax
lea edx, [ebp - 0xac]
push edx
call fcn.0060cce0
add esp, 0xc
mov byte [ebp - 4], 5
push 0
call fcn.0043cd80
mov ecx, eax
call fcn.0043ad60
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0060cce0
add esp, 0xc
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x58], edx
cmp dword [ebp - 0x58], 0
je 0x530b10
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0xc], 6
je 0x530881
jmp 0x53086c
push 0x7f2fda
lea ecx, [ebp - 0x130]
call fcn.00406ba0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x240]
or ecx, 1
mov dword [ebp - 0x240], ecx
push 0x7f2fdc
lea ecx, [ebp - 0x14c]
call fcn.00406ba0
mov dword [ebp - 4], 8
mov edx, dword [ebp - 0x240]
or edx, 2
mov dword [ebp - 0x240], edx
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x58]
push edx
lea eax, [ebp - 0x168]
push eax
call fcn.00621730
add esp, 0x10
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x248], ecx
mov dword [ebp - 4], 9
mov edx, dword [ebp - 0x240]
or edx, 4
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x248]
push eax
lea ecx, [ebp - 0xac]
push ecx
call fcn.00439120
add esp, 8
movzx edx, al
test edx, edx
je 0x530a08
lea ecx, [ebp - 0x90]
call fcn.00420b10
movzx eax, al
test eax, eax
jne 0x5309fc
push 0x7f2fdb
lea ecx, [ebp - 0x184]
call fcn.00406ba0
mov dword [ebp - 4], 0xa
mov ecx, dword [ebp - 0x240]
or ecx, 8
mov dword [ebp - 0x240], ecx
push 0x7f2fe4
lea ecx, [ebp - 0x1a0]
call fcn.00406ba0
mov dword [ebp - 4], 0xb
mov edx, dword [ebp - 0x240]
or edx, 0x10
mov dword [ebp - 0x240], edx
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x1a0]
push ecx
mov edx, dword [ebp - 0x58]
push edx
lea eax, [ebp - 0x1bc]
push eax
call fcn.00621730
add esp, 0x10
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x250], ecx
mov dword [ebp - 4], 0xc
mov edx, dword [ebp - 0x240]
or edx, 0x20
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x250]
push eax
lea ecx, [ebp - 0x90]
push ecx
call fcn.00439120
add esp, 8
movzx edx, al
test edx, edx
je 0x530a08
mov dword [ebp - 0x254], 1
jmp 0x530a12
mov dword [ebp - 0x254], 0
mov al, byte [ebp - 0x254]
mov byte [ebp - 0x111], al
mov dword [ebp - 4], 0xb
mov ecx, dword [ebp - 0x240]
and ecx, 0x20
je 0x530a42
and dword [ebp - 0x240], 0xffffffdf
lea ecx, [ebp - 0x1bc]
call fcn.00407400
mov dword [ebp - 4], 0xa
mov edx, dword [ebp - 0x240]
and edx, 0x10
je 0x530a66
and dword [ebp - 0x240], 0xffffffef
lea ecx, [ebp - 0x1a0]
call fcn.00407400
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x240]
and eax, 8
je 0x530a8a
and dword [ebp - 0x240], 0xfffffff7
lea ecx, [ebp - 0x184]
call fcn.00407400
mov dword [ebp - 4], 8
mov ecx, dword [ebp - 0x240]
and ecx, 4
je 0x530aae
and dword [ebp - 0x240], 0xfffffffb
lea ecx, [ebp - 0x168]
call fcn.00407400
mov dword [ebp - 4], 7
mov edx, dword [ebp - 0x240]
and edx, 2
je 0x530ad2
and dword [ebp - 0x240], 0xfffffffd
lea ecx, [ebp - 0x14c]
call fcn.00407400
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x240]
and eax, 1
je 0x530af6
and dword [ebp - 0x240], 0xfffffffe
lea ecx, [ebp - 0x130]
call fcn.00407400
movzx ecx, byte [ebp - 0x111]
test ecx, ecx
je 0x530b03
jmp 0x530b10
mov edx, dword [ebp - 0x58]
mov eax, dword [edx]
mov dword [ebp - 0x58], eax
jmp 0x53086c
cmp dword [ebp - 0x58], 0
jne 0x530b70
mov dword [ebp - 0x1c0], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x90]
call fcn.00407400
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xac]
call fcn.00407400
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.0041b2b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00407400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00403c30
mov eax, dword [ebp - 0x1c0]
jmp 0x530d96
push 0x7f2fe1
lea ecx, [ebp - 0x1dc]
call fcn.00406ba0
mov byte [ebp - 4], 0xd
push 0x7f2fec
lea ecx, [ebp - 0x1f8]
call fcn.00406ba0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x1dc]
push ecx
lea edx, [ebp - 0x1f8]
push edx
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.00621730
add esp, 0x10
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1f8]
call fcn.00407400
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x1dc]
call fcn.00407400
push 0x7f2ff4
lea edx, [ebp - 0x74]
push edx
call fcn.00439000
add esp, 8
movzx eax, al
test eax, eax
je 0x530c52
mov dword [ebp - 0x1fc], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x74]
call fcn.00407400
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x90]
call fcn.00407400
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xac]
call fcn.00407400
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.0041b2b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00407400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00403c30
mov eax, dword [ebp - 0x1fc]
jmp 0x530d96
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x74]
call fcn.00407400
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x90]
call fcn.00407400
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xac]
call fcn.00407400
jmp 0x530d5f
push 0x7f2fe2
lea ecx, [ebp - 0x218]
call fcn.00406ba0
mov byte [ebp - 4], 0x12
push 0x7f2ffc
lea ecx, [ebp - 0x234]
call fcn.00406ba0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x234]
push edx
lea ecx, [ebp - 0x18]
call fcn.0041b2d0
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00621730
add esp, 0x10
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x234]
call fcn.00407400
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x218]
call fcn.00407400
push str.opentab
lea ecx, [ebp - 0xc8]
push ecx
call fcn.00439000
add esp, 8
movzx edx, al
test edx, edx
je 0x530d50
mov dword [ebp - 0x238], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc8]
call fcn.00407400
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.0041b2b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00407400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00403c30
mov eax, dword [ebp - 0x238]
jmp 0x530d96
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc8]
call fcn.00407400
mov dword [ebp - 0x23c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.0041b2b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00407400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00403c30
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0071fe0b
mov esp, ebp
pop ebp
ret