Function at 0x5c7220
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x6059b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
sub eax, 0x10
call fcn.0040a210
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], 0
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x5c7298
lea ecx, [eax - 1]
test ecx, ecx
jl 0x5c7361
cmp ecx, eax
jg 0x5c7361
movzx eax, word [ebp + ecx*2]
cmp ax, 0x5c
je 0x5c7298
push 0x5c
lea edi, [esp + 0x18]
call fcn.0040af90
mov ebp, dword [esp + 0x14]
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x38]
push edx
mov ebx, str.OPTIONS.INI
mov byte [esp + 0x34], 1
call fcn.0040aab0
add esp, 8
lea edi, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.0040ab90
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c7300
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5c736b
mov byte [esp + 0x2c], al
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c732e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x2c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x5c734b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0x80070057
call fcn.00403650
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x6404b8
call fcn.00409dd0
lea edx, [esp + 0x1c]
mov bl, 3
push edx
mov ecx, str.EUDC
mov byte [esp + 0x30], bl
call fcn.00409dd0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 4
call fcn.005c7060
add esp, 0xc
test al, al
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x1c]
sete byte [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c73d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c73fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x34], 0
je 0x5c745b
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c7424
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x2c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x5c734b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x6404a4
call fcn.00409dd0
lea edx, [esp + 0x20]
mov bl, 5
push edx
mov ecx, str.EUDC
mov byte [esp + 0x30], bl
call fcn.00409dd0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 6
call fcn.005c7060
add esp, 0xc
test al, al
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x20]
sete byte [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c74c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c74ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x34], 0
je 0x5c754b
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c7514
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x2c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x5c734b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea ecx, [esp + 0x1c]
push ecx
mov ecx, str.DictFileName
call fcn.00409dd0
lea edx, [esp + 0x20]
mov bl, 7
push edx
mov ecx, str.Dict
mov byte [esp + 0x30], bl
call fcn.00409dd0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 8
call fcn.005c7060
add esp, 0xc
test al, al
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x20]
sete byte [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c75b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x5c75db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x34], 0
je 0x5c760a
lea ecx, [esp + 0x18]
call fcn.00403870
lea ecx, [esp + 0x14]
call fcn.00403870
xor al, al
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea ecx, [esp + 0x20]
push ecx
mov ecx, str.BihuaFileName
call fcn.00409dd0
lea edx, [esp + 0x34]
push edx
mov ecx, str.Dict
mov byte [esp + 0x30], 9
call fcn.00409dd0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 0xa
call fcn.005c7060
add esp, 0xc
test al, al
lea ecx, [esp + 0x34]
sete bl
call fcn.00403870
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 1
call fcn.00403870
test bl, bl
jne 0x5c75e2
lea eax, [esp + 0x20]
push eax
mov ecx, str.ChaiziFileName
call fcn.00409dd0
lea ecx, [esp + 0x34]
push ecx
mov ecx, str.Dict
mov byte [esp + 0x30], 0xb
call fcn.00409dd0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 0xc
call fcn.005c7060
add esp, 0xc
test al, al
lea ecx, [esp + 0x34]
sete bl
call fcn.00403870
lea ecx, [esp + 0x20]
call fcn.00403870
lea ecx, [esp + 0x18]
call fcn.00403870
lea ecx, [esp + 0x14]
call fcn.00403870
test bl, bl
jne 0x5c734b
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret