Function at 0x464e80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aeb8a
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
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 ebx, ecx
cmp dword [ebx + 0x34], 0
jne 0x464fd8
mov dword [ebp - 0x14], 0
push 0x2c
mov dword [ebp - 4], 0
call fcn.0048bcd0
mov edi, eax
add esp, 4
test edi, edi
je 0x464ef6
mov dword [edi], 0
mov dword [edi + 8], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
jmp 0x464ef8
xor edi, edi
mov esi, edi
mov dword [ebp - 0x14], esi
test edi, edi
je 0x464fbd
lea eax, [ebp - 0x10]
push eax
call fcn.00416760
add esp, 4
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
mov edx, dword [eax - 0xc]
test edx, edx
jle 0x464f43
lea ecx, [edx - 1]
test ecx, ecx
js 0x465010
cmp ecx, edx
jg 0x465010
cmp word [eax + ecx*2], 0x5c
je 0x464f43
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.004020b0
push str.cemi.dat
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401ea0
add esp, 0xc
push dword [eax]
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0047f2d0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], eax
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464f8e
mov ecx, dword [eax]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x24], 0
jl 0x464f9c
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebx + 0x34], edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x464fbd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x464fd8
mov ecx, esi
call fcn.0044f660
push esi
call fcn.0048bbcf
add esp, 4
cmp dword [ebx + 8], 0
jne 0x4651d6
mov dword [ebp - 0x14], 0
push 0x58
mov dword [ebp - 4], 3
call fcn.0048bcd0
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x46501a
mov ecx, eax
call fcn.00469420
mov edi, eax
jmp 0x46501c
push 0x80070057
call fcn.00402400
xor edi, edi
mov esi, edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], esi
test edi, edi
je 0x4651bb
lea eax, [ebp - 0x10]
push eax
call fcn.00416760
add esp, 4
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 5
mov edx, dword [eax - 0xc]
test edx, edx
jle 0x465063
lea ecx, [edx - 1]
test ecx, ecx
js 0x465010
cmp ecx, edx
jg 0x465010
cmp word [eax + ecx*2], 0x5c
je 0x465063
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.004020b0
push str.core.dict
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00401ea0
add esp, 0xc
push dword [eax]
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.004699b0
mov esi, eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 5
mov dword [ebp - 0x1c], eax
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4650b0
mov ecx, dword [eax]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
js 0x4650c1
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebx + 8], edi
jmp 0x46519a
push esi
call fcn.004592d0
add esp, 4
mov ecx, edi
call fcn.00469440
push edi
call fcn.0048bbcf
xor esi, esi
add esp, 4
mov dword [ebp - 0x14], esi
cmp dword [0x4f72bc], esi
je 0x465136
push dword [ebp - 0x10]
call dword [0x4b42d0]
test eax, eax
je 0x465121
push str.core.dict
push esi
push esi
call fcn.00416f10
mov edi, dword [ebp - 0x18]
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xff8
add eax, 0x1008
push edi
push eax
call dword [0x4f72bc]
add esp, 8
jmp 0x465139
mov edi, dword [ebp - 0x18]
mov eax, 6
push edi
push eax
call dword [0x4f72bc]
add esp, 8
jmp 0x465139
mov edi, dword [ebp - 0x18]
mov eax, dword [0x4f7334]
test al, 1
jne 0x46519a
or eax, 1
mov dword [0x4f7334], eax
push str.core.dict
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 7
call fcn.00401ea0
push dword [eax]
mov byte [ebp - 4], 8
push edi
push 0x4c7f20
push 0x4f7330
call fcn.00462700
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
add esp, 0x1c
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46519a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4651bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4651d6
mov ecx, esi
call fcn.00469440
push esi
call fcn.0048bbcf
add esp, 4
cmp dword [ebx + 0x10], 0
jne 0x465283
cmp dword [ebx + 0x38], 0
je 0x465283
mov dword [ebp - 0x24], 0
push 0x38
mov dword [ebp - 4], 9
call fcn.0048bcd0
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x465218
mov ecx, eax
call fcn.004714b0
mov edi, eax
jmp 0x46521a
xor edi, edi
mov esi, edi
mov dword [ebp - 0x24], esi
test edi, edi
je 0x465268
mov eax, dword [ebx + 0x38]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
call dword [0x4b41c0]
test eax, eax
je 0x465241
cmp eax, 0x80
jne 0x465245
mov byte [ebp - 0x1c], 1
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.004725d0
test eax, eax
js 0x465259
xor esi, esi
mov dword [ebx + 0x10], edi
cmp byte [ebp - 0x1c], 0
je 0x465268
push dword [ebp - 0x20]
call dword [0x4b41c4]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x465283
mov ecx, esi
call fcn.00471530
push esi
call fcn.0048bbcf
add esp, 4
cmp dword [ebx + 4], 0
jne 0x46532f
cmp dword [ebx + 0x38], 0
je 0x46532f
mov dword [ebp - 0x14], 0
push 0x60
mov dword [ebp - 4], 0xc
call fcn.0048bcd0
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x4652c5
mov ecx, eax
call fcn.0046dca0
mov esi, eax
jmp 0x4652c7
xor esi, esi
mov dword [ebp - 0x14], esi
test esi, esi
je 0x465320
mov edi, dword [ebx + 0x38]
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x28], edi
mov byte [ebp - 0x24], 0
call dword [0x4b41c0]
test eax, eax
je 0x4652ec
cmp eax, 0x80
jne 0x4652f0
mov byte [ebp - 0x24], 1
mov ecx, 0x4f8f58
mov byte [ebp - 4], 0xe
call fcn.004643f0
push 0
push dword [eax]
mov ecx, esi
call fcn.0046e080
cmp byte [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebx + 4], esi
je 0x465320
push edi
call dword [0x4b41c4]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004641a0
cmp dword [ebx], 0
jne 0x4653da
mov dword [ebp - 0x24], 0
push 0x38
mov dword [ebp - 4], 0xf
call fcn.0048bcd0
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0x10
test eax, eax
je 0x465366
mov ecx, eax
call fcn.0046ba30
mov edi, eax
jmp 0x465368
xor edi, edi
mov esi, edi
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x24], esi
test edi, edi
je 0x4653bf
lea eax, [ebp - 0x18]
push eax
push 0xbc2000
mov ecx, edi
mov dword [ebp - 0x18], 0
call fcn.0046c4e0
test eax, eax
jns 0x4653a2
mov ecx, edi
call fcn.0046ba90
push edi
call fcn.0048bbcf
add esp, 4
jmp 0x4653bd
cmp dword [ebp - 0x18], 0
jne 0x4653bb
mov ecx, 0x4f8f58
call fcn.004642e0
push dword [eax]
mov ecx, edi
call fcn.0046d8c0
mov dword [ebx], edi
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4653da
mov ecx, esi
call fcn.0046ba90
push esi
call fcn.0048bbcf
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret