Function at 0x46a430
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4d2b1e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [0x50f87c], ebx
jne 0x46a570
mov dword [esp + 0x18], ebx
push 0x2c
mov dword [esp + 0x34], ebx
call fcn.004a91fd
add esp, 4
cmp eax, ebx
je 0x46a48d
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], ebx
mov esi, eax
jmp 0x46a48f
xor esi, esi
cmp esi, ebx
mov ebp, esi
mov dword [esp + 0x18], ebp
je 0x46a55d
lea ebx, [esp + 0x14]
call fcn.00428ed0
mov byte [esp + 0x30], 1
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x46a4dc
lea ecx, [eax - 1]
test ecx, ecx
jl 0x46a5a5
cmp ecx, eax
jg 0x46a5a5
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x46a4dc
push 0x5c
mov edi, ebx
call fcn.00406b00
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ebx, str.cemi.dat
call fcn.004065b0
add esp, 8
mov byte [esp + 0x30], 2
mov ecx, dword [eax]
call fcn.0048bfa0
mov edi, eax
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46a526
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jl 0x46a536
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [0x50f87c], esi
mov byte [esp + 0x30], 0
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 0x46a55b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x30], 0xffffffff
je 0x46a570
mov esi, ebp
call fcn.00469500
cmp dword [0x50f850], ebx
jne 0x46a74a
mov dword [esp + 0x18], ebx
push 0x58
mov dword [esp + 0x34], 3
call fcn.004a91fd
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x46a5af
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
call fcn.00475f70
jmp 0x46a5b1
push 0x80070057
call fcn.00402940
xor esi, esi
cmp esi, ebx
mov ebp, esi
mov dword [esp + 0x18], ebp
je 0x46a72e
lea ebx, [esp + 0x14]
call fcn.00428ed0
mov byte [esp + 0x30], 4
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x46a5f6
lea ecx, [eax - 1]
test ecx, ecx
jl 0x46a5a5
cmp ecx, eax
jg 0x46a5a5
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x46a5f6
push 0x5c
mov edi, ebx
call fcn.00406b00
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
mov ebx, str.core.dict
call fcn.004065b0
add esp, 8
mov byte [esp + 0x30], 5
mov ecx, dword [eax]
mov eax, esi
call fcn.00475de0
mov edi, eax
mov byte [esp + 0x30], 4
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 0x46a642
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jl 0x46a657
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [0x50f850], esi
jmp 0x46a707
push edi
mov ecx, str.LastCoreDictLoadFailedErrorCode
call fcn.00428a90
add esp, 4
mov eax, esi
call fcn.00475d90
push esi
call fcn.004a91d0
xor ebp, ebp
add esp, 4
cmp dword [0x50d328], ebp
mov dword [esp + 0x18], ebp
je 0x46a6b7
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x4d5364]
test eax, eax
je 0x46a6a7
call fcn.00429360
neg eax
sbb eax, eax
and eax, 0xff8
add eax, 0x1008
jmp 0x46a6ac
mov eax, 6
push edi
push eax
call dword [0x50d328]
add esp, 8
mov eax, 1
test byte [0x510b84], al
jne 0x46a707
or dword [0x510b84], eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
mov ebx, str.core.dict
mov byte [esp + 0x38], 6
call fcn.004065b0
mov byte [esp + 0x38], 7
mov eax, dword [eax]
push eax
push edi
push 0x4efb1c
push 0x510b80
call fcn.00469990
add esp, 0x18
lea ecx, [esp + 0x20]
call fcn.004029a0
mov byte [esp + 0x30], 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 0x46a72c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x30], 0xffffffff
je 0x46a74a
mov eax, ebp
call fcn.00475d90
push ebp
call fcn.004a91d0
add esp, 4
cmp dword [0x50f858], ebx
jne 0x46a808
cmp dword [0x50f880], ebx
je 0x46a808
mov dword [esp + 0x20], ebx
push 0x38
mov dword [esp + 0x34], 8
call fcn.004a91fd
add esp, 4
cmp eax, ebx
je 0x46a795
mov dword [eax + 8], ebx
mov dword [eax + 0x10], ebx
mov dword [eax], vtable.CUserDictionary.0
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
mov byte [eax + 0x30], bl
mov edi, eax
jmp 0x46a797
xor edi, edi
cmp edi, ebx
mov ebp, edi
mov dword [esp + 0x20], ebp
je 0x46a7ec
mov esi, dword [0x50f880]
push 0xffffffffffffffff
push esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x24], bl
call dword [0x4d52f0]
cmp eax, ebx
je 0x46a7c3
cmp eax, 0x80
jne 0x46a7c8
mov byte [esp + 0x1c], 1
push edi
mov byte [esp + 0x34], 9
call fcn.00479240
cmp eax, ebx
jl 0x46a7df
xor ebp, ebp
mov dword [0x50f858], edi
cmp byte [esp + 0x1c], bl
je 0x46a7ec
push esi
call dword [0x4d5120]
cmp ebp, ebx
mov dword [esp + 0x30], 0xffffffff
je 0x46a808
mov esi, ebp
call fcn.004791d0
push ebp
call fcn.004a91d0
add esp, 4
cmp dword [0x50f84c], ebx
jne 0x46a8c4
cmp dword [0x50f880], ebx
je 0x46a8c4
mov dword [esp + 0x18], ebx
push 0x60
mov dword [esp + 0x34], 0xa
call fcn.004a91fd
add esp, 4
cmp eax, ebx
je 0x46a85b
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x30], ebx
mov dword [eax + 0x48], ebx
mov dword [eax + 0x58], ebx
mov dword [eax + 0x5c], ebx
mov dword [eax + 0x50], ebx
mov dword [eax + 0x54], ebx
mov edi, eax
jmp 0x46a85d
xor edi, edi
cmp edi, ebx
mov dword [esp + 0x18], edi
je 0x46a8b3
mov esi, dword [0x50f880]
push 0xffffffffffffffff
push esi
mov dword [esp + 0x28], esi
mov byte [esp + 0x2c], bl
call dword [0x4d52f0]
cmp eax, ebx
je 0x46a887
cmp eax, 0x80
jne 0x46a88c
mov byte [esp + 0x24], 1
mov byte [esp + 0x30], 0xb
call fcn.00469700
push edi
call fcn.00484b40
cmp byte [esp + 0x24], bl
mov dword [esp + 0x18], ebx
mov dword [0x50f84c], edi
je 0x46a8b3
push esi
call dword [0x4d5120]
lea edi, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.0046b7e0
cmp dword [0x50f848], ebx
jne 0x46a96c
mov dword [esp + 0x20], ebx
push 0x38
mov dword [esp + 0x34], 0xc
call fcn.004a91fd
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x46a912
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov edx, dword [0x50c48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x50c48c
call eax
add eax, 0x10
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi], ebx
mov byte [esi + 0x30], bl
jmp 0x46a914
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x20], esi
je 0x46a96c
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov dword [esp + 0x1c], ebx
call fcn.0047c300
test eax, eax
jge 0x46a954
mov eax, esi
call fcn.0047c1e0
push esi
call fcn.004a91d0
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esp + 0x18], ebx
jne 0x46a966
call fcn.00469840
mov edi, dword [eax]
call fcn.0047d9e0
mov dword [0x50f848], esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret