Function at 0x405420
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x458460
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x471920]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0041c08e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405468
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x20]
push ecx
mov esi, 0x4767b8
mov dword [esp + 0x44], 0
call fcn.00401420
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00402ac0
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esi], eax
call fcn.00404200
add esp, 4
push eax
mov ecx, 0x4767e8
mov byte [esp + 0x44], 2
call fcn.00402930
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4054f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0xa8]
sub eax, 0x10
push eax
call fcn.00402ac0
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
mov bl, 3
mov byte [esp + 0x40], bl
mov eax, dword [eax - 0xc]
add eax, 0xfffffffc
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401f80
lea edx, [esp + 0x14]
push 0x4622d0
push edx
mov ecx, eax
mov byte [esp + 0x48], 4
call fcn.00406380
push 0x462880
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x54], 5
call fcn.00402140
add esp, 0x14
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 6
call fcn.00402930
mov byte [esp + 0x40], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405586
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4055ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4055cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push 0x4767b8
push edx
call fcn.00402080
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edx, 0xffffffff
cmp eax, 0xffffffff
mov eax, dword [esp + 0x14]
jne 0x405618
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405640
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405640
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405631
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x4768b8
call fcn.00402930
push ecx
mov edx, esp
mov dword [esp + 0x28], esp
push 0x4768b8
push 0x4767b8
push edx
call fcn.00402080
add esp, 0xc
call fcn.0040ae90
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.DebugMode
xor esi, esi
call fcn.00402680
push ecx
mov byte [esp + 0x48], 7
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Huaqin
call fcn.00402680
mov ecx, esi
mov byte [esp + 0x48], bl
call fcn.0040b100
xor ecx, ecx
cmp eax, 0x147c
sete cl
push ecx
mov dword [0x476794], ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Debugger
call fcn.00402680
push ecx
mov byte [esp + 0x48], 8
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Huaqin
call fcn.00402680
mov ecx, esi
mov byte [esp + 0x48], bl
call fcn.0040b100
cmp eax, 0x1418
mov dword [edi + 0xa4], eax
jne 0x4056ee
mov dword [edi + 0xa4], 1
jmp 0x4056fd
sub eax, 0x16d4
neg eax
sbb eax, eax
mov dword [edi + 0xa4], eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.ShowMenu
xor esi, esi
call fcn.00402680
push ecx
mov byte [esp + 0x48], 9
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Huaqin
call fcn.00402680
mov ecx, esi
mov byte [esp + 0x48], bl
call fcn.0040b100
xor edx, edx
cmp eax, 0x1429
sete dl
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.AlwayScript
mov dword [0x476790], edx
call fcn.00402680
push ecx
mov byte [esp + 0x48], 0xa
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Huaqin
call fcn.00402680
mov ecx, esi
mov byte [esp + 0x48], bl
call fcn.0040b100
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.StartPage
mov dword [0x47678c], eax
call fcn.00402680
push ecx
mov byte [esp + 0x48], 0xb
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Huaqin
call fcn.00402680
lea esi, [esp + 0x2c]
mov byte [esp + 0x48], bl
call fcn.0040af50
push eax
mov ecx, 0x4767bc
mov byte [esp + 0x44], 0xc
call fcn.00402930
mov byte [esp + 0x40], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Cableloss
call fcn.00402680
push ecx
mov byte [esp + 0x48], 0xd
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Huaqin
call fcn.00402680
lea esi, [esp + 0x2c]
mov byte [esp + 0x48], bl
call fcn.0040af50
push eax
mov ecx, 0x4767c4
mov byte [esp + 0x44], 0xe
call fcn.00402930
mov byte [esp + 0x40], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405848
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.OnlyOne
mov esi, 1
call fcn.00402680
push ecx
mov byte [esp + 0x48], 0xf
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Huaqin
call fcn.00402680
mov ecx, esi
mov byte [esp + 0x48], bl
call fcn.0040b100
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.MainTitle
mov dword [0x476788], eax
call fcn.00402680
push ecx
mov byte [esp + 0x48], 0x10
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Huaqin
call fcn.00402680
lea esi, [esp + 0x2c]
mov byte [esp + 0x48], bl
call fcn.0040af50
push eax
mov ecx, 0x4767c0
mov byte [esp + 0x44], 0x11
call fcn.00402930
mov byte [esp + 0x40], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4058ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.ShowSubTitle
mov esi, 1
call fcn.00402680
push ecx
mov byte [esp + 0x48], 0x12
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Huaqin
call fcn.00402680
mov ecx, esi
mov byte [esp + 0x48], bl
call fcn.0040b100
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.NewWindowMode
mov dword [0x476780], eax
xor esi, esi
call fcn.00402680
push ecx
mov byte [esp + 0x48], 0x13
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Huaqin
call fcn.00402680
mov ecx, esi
mov byte [esp + 0x48], bl
call fcn.0040b100
mov dword [0x476784], eax
mov eax, dword [0x4767c4]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00402ac0
lea ecx, [esp + 0x2c]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00401d00
add esp, 8
push eax
mov ecx, 0x4767c4
mov byte [esp + 0x44], 0x14
call fcn.00402930
mov byte [esp + 0x40], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4059bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4767bc]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x4059ea
push esi
mov ecx, 0x4767bc
call fcn.00402ba0
mov edx, dword [0x4767bc]
lea ecx, [esi + 1]
push ecx
push edx
call fcn.0043fb93
add esp, 8
test esi, esi
jl 0x405c22
mov eax, dword [0x4767bc]
cmp esi, dword [eax - 8]
jg 0x405c22
mov dword [eax - 0xc], esi
mov edx, dword [0x4767bc]
lea eax, [esp + 0x24]
push eax
mov word [edx + esi*2], 0
mov ecx, dword [0x4767bc]
push 0x462974
push ecx
call fcn.00401190
mov ecx, dword [0x4767cc]
mov dword [esp + 0x28], eax
mov eax, dword [0x4767d0]
add esp, 0xc
cmp ecx, eax
mov edi, eax
jbe 0x405a5a
call fcn.0043fcd0
mov eax, dword [0x4767d0]
mov ecx, dword [0x4767cc]
cmp ecx, eax
mov esi, 0x4767c8
mov ebx, ecx
jbe 0x405a6a
call fcn.0043fcd0
push edi
push esi
push ebx
mov eax, 0x4767c8
push eax
lea edx, [esp + 0x24]
push edx
mov ebx, eax
call fcn.00406750
mov edi, dword [esp + 0x24]
xor ebx, ebx
test edi, edi
jle 0x405b6f
call fcn.0041c08e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40545e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x40], 0x15
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + ebx*4]
push edx
lea eax, [esp + 0x18]
push 0x462978
push eax
call fcn.00402e70
mov edx, dword [0x4767cc]
mov esi, dword [0x4767d0]
add esp, 0xc
test edx, edx
je 0x405b20
mov ecx, dword [0x4767d4]
mov eax, esi
sub eax, edx
sub ecx, edx
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x405b20
mov edx, dword [esp + 0x28]
mov byte [esp + 0x24], 0
mov ecx, dword [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
push 1
push esi
call fcn.00406fb0
add esp, 0x14
add esi, 4
mov dword [0x4767d0], esi
jmp 0x405b3f
cmp edx, esi
jbe 0x405b29
call fcn.0043fcd0
push esi
mov eax, 0x4767c8
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004066c0
mov byte [esp + 0x40], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 1
cmp ebx, edi
jl 0x405a8d
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x405b9d
xor esi, esi
test edi, edi
jle 0x405b94
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x405b8d
push eax
call fcn.0043ee50
add esp, 4
add esi, 1
cmp esi, edi
jl 0x405b7d
push ebx
call fcn.0043ee50
add esp, 4
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405bc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405be7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402660
int3