Function at 0x46af40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
mov eax, dword [0x513040]
xor eax, esp
mov dword [esp + 0xb4], eax
cmp dword [ecx + 0x30], 0
mov eax, dword [ecx + 0xc]
push esi
lea esi, [ecx + 0x30]
mov dword [esp + 0x54], edx
push edi
mov edi, dword [eax + 0x18]
mov dword [esp + 0x5c], ecx
jne 0x46b010
mov eax, dword [0x513290]
test eax, eax
je 0x46afa7
push 0xca
call eax
add esp, 4
test eax, eax
je 0x46afa7
mov eax, 0xd0a
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
lea eax, [esp + 0x9c]
push eax
push 0x101e
push esi
xor edx, edx
call fcn.0042e3c0
add esp, 0xc
mov dword [esp + 0x9c], eax
test eax, eax
jne 0x46b578
mov ecx, dword [esi]
mov dword [esp + 0xa0], 0x7fff0000
mov dword [esp + 0xa4], eax
mov edx, dword [ecx]
test edx, edx
je 0x46b004
lea eax, [esp + 0xa0]
push eax
mov eax, dword [edx + 0x28]
push 0x12
push ecx
call eax
mov eax, dword [esp + 0xa8]
add esp, 0xc
test eax, eax
jne 0x46b578
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
mov edx, dword [ecx + 0x38]
mov eax, dword [ecx + 0x3c]
add edx, dword [esi + 8]
adc eax, dword [esi + 0xc]
add edx, 9
adc eax, 0
push eax
push edx
mov edx, dword [ecx + 0x30]
mov ecx, edi
call fcn.0046aba0
mov ecx, dword [esp + 0x64]
add esp, 8
mov edx, esi
call fcn.0046adb0
test eax, eax
jne 0x46b578
mov ecx, dword [esp + 0x5c]
xorps xmm0, xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x70], xmm0
movq qword [esp + 0x80], xmm0
mov eax, dword [ecx + 0xc]
mov edi, dword [ecx + 0x38]
mov esi, dword [ecx + 0x3c]
mov ecx, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], eax
cdq
mov dword [esp + 0x30], ecx
mov ecx, eax
mov eax, edx
mov dword [esp + 0x10], edi
push eax
push ecx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x5c], eax
call fcn.0042ee10
add esp, 8
mov dword [esp + 0x50], eax
test eax, eax
jne 0x46b0d3
mov edi, dword [esp + 0x70]
lea esi, [eax + 7]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x20], eax
jmp 0x46b0fa
push dword [esp + 0x54]
push dword [esp + 0xa0]
push esi
push edi
call fcn.004f6fd0
mov edi, eax
cdq
sub dword [esp + 0x10], eax
mov dword [esp + 0x1c], edi
sbb esi, edx
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x2c], esi
inc dword [eax + 8]
mov eax, dword [esp + 0x58]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
test edx, edx
ja 0x46b173
jb 0x46b11a
cmp ecx, 0x7f
ja 0x46b138
and cl, 0x7f
mov edx, 1
mov byte [esp + 0xa0], cl
mov ecx, edx
mov dword [esp + 0x9c], edx
mov dword [esp + 0x4c], ecx
jmp 0x46b1a0
test edx, edx
ja 0x46b173
jb 0x46b146
cmp ecx, 0x3fff
ja 0x46b173
mov eax, ecx
shrd eax, edx, 7
mov edx, 2
or al, 0x80
mov dword [esp + 0x9c], edx
and cl, 0x7f
mov byte [esp + 0xa0], al
mov byte [esp + 0xa1], cl
mov ecx, edx
mov dword [esp + 0x4c], ecx
jmp 0x46b1a0
push edx
push ecx
lea ecx, [esp + 0xa8]
call fcn.004350d0
mov edx, eax
add esp, 8
mov dword [esp + 0x9c], edx
mov ecx, edx
mov dword [esp + 0x4c], ecx
test edx, edx
jle 0x46b242
nop dword [eax + eax]
test esi, esi
jne 0x46b23e
mov eax, dword [esp + 0x20]
sub eax, edi
cmp ecx, eax
cmovle eax, ecx
sub edx, ecx
push eax
mov dword [esp + 0x30], eax
lea ecx, [esp + 0xa4]
mov eax, dword [esp + 0x54]
add edx, ecx
push edx
add eax, edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x38]
add esp, 0xc
add edi, eax
cmp edi, dword [esp + 0x20]
jne 0x46b225
mov esi, dword [esp + 0x30]
mov ecx, dword [esi]
mov esi, dword [esp + 0x1c]
mov eax, esi
cdq
add eax, dword [esp + 0x10]
adc edx, dword [esp + 0x18]
sub edi, esi
push edx
push eax
mov eax, dword [esp + 0x58]
add eax, esi
push edi
push eax
push dword [esp + 0x40]
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
xor edi, edi
mov eax, dword [esp + 0x34]
add esp, 0x14
cdq
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
adc dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x9c]
sub ecx, eax
mov dword [esp + 0x4c], ecx
test ecx, ecx
jg 0x46b1a0
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x58]
mov esi, dword [eax]
mov dword [esp + 0x4c], esi
test esi, esi
je 0x46b4bc
mov eax, dword [esi + 4]
mov dword [esp + 0xa0], eax
mov eax, dword [esi]
cdq
mov ecx, eax
test edx, edx
ja 0x46b2bf
jb 0x46b26e
cmp ecx, 0x7f
ja 0x46b288
and cl, 0x7f
mov byte [esp + 0xb0], cl
mov ecx, 1
mov dword [esp + 0x9c], ecx
mov esi, ecx
jmp 0x46b2e3
test edx, edx
ja 0x46b2bf
jb 0x46b296
cmp ecx, 0x3fff
ja 0x46b2bf
mov eax, ecx
shrd eax, edx, 7
or al, 0x80
and cl, 0x7f
mov byte [esp + 0xb1], cl
mov ecx, 2
mov byte [esp + 0xb0], al
mov esi, ecx
mov dword [esp + 0x9c], ecx
jmp 0x46b2e3
push edx
push ecx
lea ecx, [esp + 0xb8]
call fcn.004350d0
mov ecx, eax
add esp, 8
mov dword [esp + 0x9c], ecx
mov esi, ecx
test ecx, ecx
jle 0x46b382
cmp dword [esp + 0x2c], 0
jne 0x46b382
mov eax, dword [esp + 0x20]
sub eax, edi
cmp esi, eax
cmovle eax, esi
push eax
mov dword [esp + 0x58], eax
mov eax, ecx
sub eax, esi
lea ecx, [esp + 0xb4]
add eax, ecx
push eax
mov eax, dword [esp + 0x58]
add eax, edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x60]
add esp, 0xc
add edi, eax
cmp edi, dword [esp + 0x20]
jne 0x46b371
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
cdq
add eax, dword [esp + 0x10]
adc edx, dword [esp + 0x18]
sub edi, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x58]
add eax, dword [esp + 0x24]
push edi
push eax
push dword [esp + 0x40]
mov eax, dword [ecx + 0xc]
call eax
mov dword [esp + 0x40], eax
xor edi, edi
mov eax, dword [esp + 0x34]
add esp, 0x14
cdq
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
adc dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x9c]
sub esi, eax
test esi, esi
jg 0x46b2e3
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
mov esi, edx
mov dword [esp + 0x9c], edx
test edx, edx
jle 0x46b43d
nop dword [eax]
cmp dword [esp + 0x2c], 0
jne 0x46b43d
mov eax, dword [esp + 0x20]
sub eax, edi
cmp esi, eax
cmovle eax, esi
sub edx, esi
push eax
mov dword [esp + 0x58], eax
add ecx, 8
mov eax, dword [esp + 0x54]
add edx, ecx
push edx
add eax, edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x60]
add esp, 0xc
add edi, eax
cmp edi, dword [esp + 0x20]
jne 0x46b428
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
cdq
add eax, dword [esp + 0x10]
adc edx, dword [esp + 0x18]
sub edi, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x58]
add eax, dword [esp + 0x24]
push edi
push eax
push dword [esp + 0x40]
mov eax, dword [ecx + 0xc]
call eax
mov dword [esp + 0x40], eax
xor edi, edi
mov eax, dword [esp + 0x34]
add esp, 0x14
cdq
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
adc dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x4c]
sub esi, eax
mov edx, dword [esp + 0x9c]
test esi, esi
jg 0x46b3a0
mov eax, dword [esp + 0x58]
cmp dword [eax + 4], 0
jne 0x46b4a3
cmp dword [0x513190], 0
je 0x46b499
mov eax, dword [0x515ee0]
test eax, eax
je 0x46b463
push eax
call dword [0x5131e0]
add esp, 4
mov esi, dword [esp + 0x4c]
push esi
call dword [0x5131bc]
sub dword [0x515d68], eax
add esp, 4
dec dword [0x515d8c]
push esi
call dword [0x5131b4]
mov eax, dword [0x515ee0]
add esp, 4
test eax, eax
je 0x46b4a3
push eax
call dword [0x5131e8]
jmp 0x46b4a0
push ecx
call dword [0x5131b4]
add esp, 4
mov eax, dword [esp + 0xa0]
mov esi, eax
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x46b254
mov eax, dword [esp + 0x58]
mov dword [eax], esi
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x46b501
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x46b501
mov eax, dword [esp + 0x1c]
cmp edi, eax
jle 0x46b501
mov esi, dword [esp + 0x30]
cdq
add eax, dword [esp + 0x10]
adc edx, dword [esp + 0x18]
add ecx, dword [esp + 0x1c]
mov esi, dword [esi]
push edx
push eax
mov eax, edi
sub eax, dword [esp + 0x24]
push eax
push ecx
push dword [esp + 0x40]
mov ecx, dword [esi + 0xc]
call ecx
add esp, 0x14
mov esi, eax
mov ecx, dword [esp + 0x5c]
mov eax, edi
mov edi, dword [esp + 0x50]
cdq
add eax, dword [esp + 0x10]
mov dword [ecx + 0x38], eax
adc edx, dword [esp + 0x18]
mov dword [ecx + 0x3c], edx
test edi, edi
je 0x46b576
cmp dword [0x513190], 0
je 0x46b56c
mov eax, dword [0x515ee0]
test eax, eax
je 0x46b53a
push eax
call dword [0x5131e0]
add esp, 4
push edi
call dword [0x5131bc]
sub dword [0x515d68], eax
add esp, 4
dec dword [0x515d8c]
push edi
call dword [0x5131b4]
mov eax, dword [0x515ee0]
add esp, 4
test eax, eax
je 0x46b576
push eax
call dword [0x5131e8]
jmp 0x46b573
push edi
call dword [0x5131b4]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret