Function at 0x46f210
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a3789
mov eax, dword fs:[0]
push eax
mov eax, 0x10d0
call fcn.00498c40
mov eax, dword [0x4d32ac]
xor eax, esp
mov dword [esp + 0x10c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d32ac]
xor eax, esp
push eax
lea eax, [esp + 0x10e4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10f4]
mov esi, edx
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x48], ecx
call dword [0x4a7350]
test eax, eax
je 0x46fad3
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x2c], edi
push ebp
push 0x80
push 3
push ebp
push 1
push 0x80000000
push esi
mov dword [esp + 0x1108], ebp
call dword [0x4a72f8]
cmp eax, 0xffffffff
jne 0x46f417
call fcn.00404790
cmp eax, ebp
jne 0x46fad3
mov ebx, dword [0x4a7310]
push ebp
lea edx, [esp + 0x2c]
push edx
push 0x40
lea eax, [esp + 0xa8]
push eax
push edi
mov dword [esp + 0x3c], ebp
call ebx
cmp eax, ebp
jne 0x46f2d1
call fcn.00404790
push 0x1000
lea ecx, [esp + 0xe0]
push ebp
push ecx
mov dword [esp + 0x34], 0x40
call fcn.00485090
mov edx, dword [esp + 0x2c]
add esp, 0xc
cmp byte [edx + 0x2c], 0
jne 0x46fac4
lea ecx, [ecx]
push ebp
lea eax, [esp + 0x18]
push eax
push 0x22
lea ecx, [esp + 0xe8]
push ecx
push edi
mov dword [esp + 0x28], ebp
call ebx
cmp eax, ebp
jne 0x46f422
call fcn.00404790
cmp eax, ebp
jne 0x46fac4
mov esi, dword [esp + 0xdc]
push ebp
lea edx, [esp + 0x18]
push edx
add esi, 0xffffffde
push esi
lea eax, [esp + 0x10a]
push eax
push edi
mov dword [esp + 0x28], ebp
call ebx
cmp eax, ebp
jne 0x46f42c
call fcn.00404790
cmp eax, ebp
jne 0x46fa88
mov edx, dword [0x4dbc78]
mov eax, dword [edx + 0xc]
mov ecx, 0x4dbc78
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x10ec], 1
mov edx, dword [0x4dbc78]
mov eax, dword [edx + 0xc]
mov ecx, 0x4dbc78
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x10ec], 2
mov edx, dword [0x4dbc78]
mov eax, dword [edx + 0xc]
mov ecx, 0x4dbc78
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x10ec], 3
movzx ecx, word [esp + 0xe8]
mov eax, dword [esi - 8]
shr ecx, 1
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x46f3e6
lea eax, [esp + 0x14]
call fcn.00404d50
mov esi, dword [esp + 0x14]
movzx ecx, word [esp + 0xe8]
push ecx
lea edx, [esp + 0x102]
push edx
push esi
call fcn.00483140
movzx eax, word [esp + 0xf4]
shr eax, 1
add esp, 0xc
cmp eax, 0xffffffff
jne 0x46f44f
test esi, esi
jne 0x46f435
xor eax, eax
jmp 0x46f457
mov edi, eax
mov dword [esp + 0x2c], edi
jmp 0x46f2ab
cmp dword [esp + 0x14], 0x22
jmp 0x46f326
cmp dword [esp + 0x14], esi
jmp 0x46f35b
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46f440
sub eax, edx
sar eax, 1
test eax, eax
jl 0x46faba
cmp eax, dword [esi - 8]
jg 0x46faba
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
movzx ecx, word [esp + 0xea]
mov eax, dword [edi - 8]
movzx esi, word [esp + 0xe8]
shr ecx, 1
mov edx, 1
sub edx, dword [edi - 4]
sub eax, ecx
or eax, edx
jge 0x46f499
lea eax, [esp + 0x1c]
call fcn.00404d50
mov edi, dword [esp + 0x1c]
movzx eax, word [esp + 0xea]
lea ebp, [esp + 0xfe]
push eax
lea ecx, [esi + ebp]
push ecx
push edi
call fcn.00483140
movzx eax, word [esp + 0xf6]
shr eax, 1
add esp, 0xc
cmp eax, 0xffffffff
jne 0x46f4e1
test edi, edi
jne 0x46f4cd
xor eax, eax
jmp 0x46f4e9
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46f4d2
sub eax, edx
sar eax, 1
test eax, eax
jl 0x46faba
cmp eax, dword [edi - 8]
jg 0x46faba
mov dword [edi - 0xc], eax
mov word [edi + eax*2], 0
movzx edx, word [esp + 0xea]
movzx ecx, word [esp + 0xec]
mov eax, dword [ebx - 8]
add esi, edx
shr ecx, 1
mov edx, 1
sub edx, dword [ebx - 4]
sub eax, ecx
or eax, edx
jge 0x46f52d
lea eax, [esp + 0x24]
call fcn.00404d50
mov ebx, dword [esp + 0x24]
movzx eax, word [esp + 0xec]
push eax
add ebp, esi
push ebp
push ebx
call fcn.00483140
movzx eax, word [esp + 0xf8]
shr eax, 1
add esp, 0xc
cmp eax, 0xffffffff
jne 0x46f56f
test ebx, ebx
jne 0x46f559
xor eax, eax
jmp 0x46f577
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46f560
sub eax, edx
sar eax, 1
test eax, eax
jl 0x46faba
cmp eax, dword [ebx - 8]
jg 0x46faba
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], 0
mov edx, dword [0x4dbc78]
mov eax, dword [edx + 0xc]
mov ecx, 0x4dbc78
xor ebp, ebp
mov dword [esp + 0x54], vtable.ST_CHARFACE_KEY.0
mov dword [esp + 0x58], vtable.ST_CHARFACE_KEY.1.0
call eax
add eax, 0x10
mov dword [esp + 0x5c], eax
mov byte [esp + 0x10ec], 4
mov ecx, dword [esp + 0xee]
mov edx, dword [esp + 0xf2]
mov eax, dword [esp + 0xf6]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0xfa]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov esi, dword [esp + 0x1c]
cmp dword [esi - 0xc], 0
jle 0x46f6c6
push 0x2c
push esi
call fcn.00480384
add esp, 8
test eax, eax
je 0x46f6c6
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x46f6ce
lea edx, [esp + 0x1c]
push edx
sub eax, ebp
mov ecx, ebp
lea edx, [esp + 0x4c]
call fcn.00404be0
mov ebx, eax
mov byte [esp + 0x10ec], 5
call fcn.004697c0
mov edi, eax
call fcn.00469840
mov ecx, dword [eax]
mov esi, dword [esp + 0x5c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x46f692
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x46f685
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x46f685
call fcn.004046b0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x46f67c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x5c], ebx
jmp 0x46f692
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x60]
call fcn.00404880
mov byte [esp + 0x10ec], 4
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f6ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x18]
add ebp, 1
jmp 0x46f76d
mov dword [esp + 0x18], 0xffffffff
mov ecx, ebp
lea esi, [esp + 0x40]
lea edx, [esp + 0x1c]
call fcn.00409bf0
mov ebx, eax
mov byte [esp + 0x10ec], 6
call fcn.004697c0
mov edi, eax
call fcn.00469840
mov ecx, dword [eax]
mov esi, dword [esp + 0x5c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x46f745
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x46f738
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x46f738
call fcn.004046b0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x46f72f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x5c], ebx
jmp 0x46f745
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x60]
call fcn.00404880
mov byte [esp + 0x10ec], 4
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f76d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx]
push 0xffffffffffffffff
xor bl, bl
push esi
mov dword [esp + 0x40], esi
mov byte [esp + 0x44], bl
call dword [0x4a72cc]
test eax, eax
je 0x46f791
cmp eax, 0x80
jne 0x46f797
mov bl, 1
mov byte [esp + 0x3c], bl
mov edx, dword [esp + 0x20]
mov byte [esp + 0x10ec], 7
mov edi, dword [edx + 8]
test edi, edi
je 0x46f7b9
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.0046d1f0
test bl, bl
mov byte [esp + 0x10ec], 4
je 0x46f7d1
push esi
call dword [0x4a7128]
mov byte [esp + 0x3c], 0
cmp dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x38], 0
jne 0x46f5e6
lea edx, [esp + 0x70]
push edx
call fcn.0046c920
mov byte [esp + 0x10ec], 8
mov eax, dword [0x4dbc78]
mov edx, dword [eax + 0xc]
mov ecx, 0x4dbc78
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x10ec], 9
xor esi, esi
jmp 0x46f820
movzx eax, byte [esp + esi + 0xee]
push eax
push 0x4aa5e0
lea edi, [esp + 0x20]
call fcn.004043a0
add esi, 1
add esp, 8
cmp esi, 0x10
jb 0x46f820
mov ebx, edi
mov edi, dword [esp + 0x44]
lea ecx, [esp + 0x4c]
push ecx
mov esi, edi
call fcn.0046b7e0
mov eax, dword [esp + 0x4c]
test eax, eax
mov esi, dword [edi + 4]
je 0x46f863
cmp eax, edi
je 0x46f868
call fcn.0047ebfb
cmp dword [esp + 0x50], esi
mov al, byte [esp + 0xe0]
je 0x46f87e
mov word [esp + 0x78], 1
jmp 0x46f88c
mov dl, al
and dl, 1
movzx cx, dl
mov word [esp + 0x78], cx
mov ecx, dword [esp + 0xee]
mov ebp, dword [esp + 0x28]
shr al, 1
and al, 1
movzx dx, al
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xf6]
mov word [esp + 0x7a], dx
mov edx, dword [esp + 0xf2]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0xfa]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x1c]
lea edi, [esp + 0x94]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x88], edx
mov dword [esp + 0x90], ecx
call fcn.00403b10
lea eax, [esp + 0x24]
lea edi, [esp + 0x98]
call fcn.00403b10
mov edi, dword [esp + 0x20]
mov esi, dword [edi]
push 0xffffffffffffffff
xor bl, bl
push esi
mov dword [esp + 0x38], esi
mov byte [esp + 0x3c], bl
call dword [0x4a72cc]
test eax, eax
je 0x46f92b
cmp eax, 0x80
jne 0x46f931
mov bl, 1
mov byte [esp + 0x34], bl
mov byte [esp + 0x10ec], 0xa
mov edi, dword [edi + 8]
test edi, edi
je 0x46f94f
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x74]
push eax
call fcn.0046d1f0
test bl, bl
je 0x46f95f
push esi
call dword [0x4a7128]
mov byte [esp + 0x34], 0
add ebp, dword [esp + 0xdc]
mov byte [esp + 0x10ec], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], ebp
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f99a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10ec], 4
mov eax, dword [esp + 0x98]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f9c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x94]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f9e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10ec], 3
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fa10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10ec], 2
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 0x46fa38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10ec], 1
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 0x46fa60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10ec], 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 0x46fa88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x1000
lea ecx, [esp + 0xe0]
push 0
push ecx
call fcn.00485090
mov edx, dword [esp + 0x2c]
add esp, 0xc
cmp byte [edx + 0x2c], 0
jne 0x46fac4
mov edi, dword [esp + 0x2c]
mov ebx, dword [0x4a7310]
xor ebp, ebp
jmp 0x46f300
push 0x80070057
call fcn.00404ef0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x46fad3
push eax
call dword [0x4a7260]
mov eax, 1
mov ecx, dword [esp + 0x10e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10c8]
xor ecx, esp
call fcn.0047f0e0
add esp, 0x10dc
ret 4