Function at 0x451dc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae368
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4f3168]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00402420
lea esi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x10], esi
mov ecx, dword [esi - 0xc]
mov dword [ebp - 4], 0
test ecx, ecx
jle 0x451e34
lea eax, [ecx - 1]
test eax, eax
js 0x45211d
cmp eax, ecx
jg 0x45211d
cmp word [esi + eax*2], 0x5c
je 0x451e34
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.004020b0
mov esi, dword [ebp - 0x10]
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.OPTIONS.INI
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.00401ea0
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00401cd0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x451e90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x14]
push edi
call dword [0x4b42d0]
test eax, eax
je 0x452127
push 0x4c6e50
lea ecx, [ebp - 0x1c]
call fcn.00401930
push str.EUDC
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00401930
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 4
call fcn.004521e0
mov edx, dword [ebp - 0x18]
add esp, 0x10
test al, al
sete byte [ebp + 0xb]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x451f02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x451f22
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xb], 0
jne 0x452127
push 0x4c6e3c
lea ecx, [ebp - 0x18]
call fcn.00401930
push str.EUDC
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00401930
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 6
call fcn.004521e0
mov edx, dword [ebp - 0x1c]
add esp, 0x10
test al, al
sete byte [ebp + 0xb]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x451f8c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x451fac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xb], 0
jne 0x452127
push str.DictFileName
lea ecx, [ebp - 0x18]
call fcn.00401930
push str.Dict
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00401930
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 8
call fcn.004521e0
mov edx, dword [ebp - 0x1c]
add esp, 0x10
test al, al
sete byte [ebp + 0xb]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x452016
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x452036
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xb], 0
jne 0x452127
push str.BihuaFileName
lea ecx, [ebp - 0x18]
call fcn.00401930
push str.Dict
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.00401930
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0xa
call fcn.004521e0
mov edx, dword [ebp - 0x1c]
add esp, 0x10
test al, al
sete byte [ebp + 0xb]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4520a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4520c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xb], 0
jne 0x452127
push str.ChaiziFileName
lea ecx, [ebp - 0x1c]
call fcn.00401930
push str.Dict
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xb
call fcn.00401930
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0xc
call fcn.004521e0
add esp, 0x10
test al, al
lea ecx, [ebp + 8]
sete bl
call fcn.00401c10
lea ecx, [ebp - 0x1c]
call fcn.00401c10
test bl, bl
jne 0x452127
mov bl, 1
jmp 0x452129
push 0x80070057
call fcn.00402400
xor bl, bl
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x452149
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x452167
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret