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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb0
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
movzx ebx, byte [ecx + 0xc]
cmp ebx, 7
ja 0x46c446
mov eax, 0x86
bt eax, ebx
jae 0x46c446
mov eax, dword [ecx]
mov ecx, dword [ecx + 8]
lea esi, [esp + 0x34]
xor edx, edx
mov dword [esi], 1
mov dword [esi + 4], edx
mov dword [esi + 8], edx
lea edx, [esp + 0x68]
mov word [edx], 0
and ecx, 0xfffffffe
mov dword [edx + 4], eax
add ecx, eax
mov dword [edx + 8], ecx
push edx
push esi
call fcn.0046bf44
add esp, 8
mov eax, dword [esi + 8]
mov ecx, dword [esi]
test eax, eax
je 0x46c04f
cmp byte [ecx + eax - 1], 0
jne 0x46c051
dec eax
jne 0x46c045
xor eax, eax
mov edx, dword [esp + 0x38]
cmp bl, 7
jne 0x46c3f3
xor esi, esi
mov dword [esp + 0x40], edx
xor edx, edx
inc esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
push esi
push 0x50a19d
mov dword [esp + 0x4c], eax
push eax
mov dword [esp + 0x34], ecx
push ecx
lea eax, [esp + 0x78]
push eax
call fcn.004a1b70
add esp, 0x14
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x20], 0
mov edi, eax
mov dword [esp + 0x4c], eax
mov byte [esp + 7], al
mov eax, dword [esp + 0x68]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x14], edx
and edi, 0xffffff00
mov dword [esp + 0x58], edi
mov edi, edx
sub edi, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x50], edi
mov edi, esi
sub edi, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x98]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x30], eax
mov eax, edx
lea eax, [edx - 1]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x5c], 0
je 0x46c2ec
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 8]
add ecx, eax
cmp ecx, dword [esp + 0xc]
jae 0x46c3fd
movzx eax, byte [esp + 7]
mov esi, dword [esp + 0x10]
or eax, dword [esp + 0x58]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x64], eax
mov cl, byte [edi + ecx]
xor eax, eax
xor edx, edx
inc edx
shld eax, edx, cl
shl edx, cl
test cl, 0x20
mov ecx, 0
cmovne eax, edx
cmovne edx, ecx
and eax, dword [esp + 0x64]
and edx, dword [esp + 0x60]
or edx, eax
je 0x46c240
mov eax, dword [esp + 0x2c]
mov ecx, esi
cmp eax, esi
cmova ecx, eax
cmp dword [esp + 0x10], 0xffffffff
cmove ecx, eax
cmp ecx, dword [esp + 0x14]
jae 0x46c1d5
mov eax, dword [esp + 0x30]
lea edx, [eax + ecx]
mov eax, dword [esp + 0x14]
sub eax, ecx
add ecx, dword [esp + 8]
cmp ecx, dword [esp + 0xc]
jae 0x46c476
mov bl, byte [edx]
cmp bl, byte [edi + ecx]
jne 0x46c277
inc edx
inc ecx
dec eax
jne 0x46c1bb
cmp dword [esp + 0x10], 0xffffffff
mov ecx, esi
mov eax, 0
cmove ecx, eax
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jae 0x46c28a
dec eax
cmp eax, dword [esp + 0x14]
jae 0x46c45e
mov edx, dword [esp + 8]
add edx, eax
cmp edx, dword [esp + 0xc]
jae 0x46c46a
mov ebx, dword [esp + 0x30]
mov bl, byte [ebx + eax]
cmp bl, byte [edi + edx]
je 0x46c1e8
mov eax, dword [esp + 8]
add eax, dword [esp + 0x54]
cmp dword [esp + 0x10], 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [esp + 0x50]
je 0x46c234
mov esi, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 8]
add ecx, eax
jmp 0x46c268
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x1c]
add edx, dword [esp + 0x14]
cmp dword [esp + 0x10], 0xffffffff
cmovne eax, ecx
cmovne esi, ecx
mov ecx, edx
mov dword [esp + 8], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
lea ecx, [edx + eax]
cmp ecx, dword [esp + 0xc]
jb 0x46c166
jmp 0x46c3fd
add ecx, dword [esp + 0x48]
xor eax, eax
cmp dword [esp + 0x10], 0xffffffff
mov dword [esp + 8], ecx
jne 0x46c22e
jmp 0x46c234
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
cmp dword [esp + 0x10], 0xffffffff
mov esi, dword [esp + 0x1c]
lea ebx, [ecx + eax]
mov eax, 0
cmovne esi, eax
mov eax, ecx
mov ecx, ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
add eax, ecx
add edx, ecx
push eax
push edx
lea esi, [esp + 0x3c]
push esi
call fcn.004155f8
add esp, 0xc
lea eax, [0x50a19d]
push eax
mov eax, 0x50a19c
push eax
push esi
call fcn.004155f8
add esp, 0xc
mov dword [esp + 0x20], ebx
jmp 0x46c132
test dword [esp + 0x4c], 0xff0000
jne 0x46c3fd
mov ecx, dword [esp + 0x18]
mov dh, byte [esp + 7]
mov eax, dword [esp + 0xc]
test ecx, ecx
je 0x46c323
mov eax, dword [esp + 0xc]
sub eax, ecx
jbe 0x46c31d
cmp byte [edi + ecx], 0xbf
jg 0x46c323
jmp 0x46c48a
jne 0x46c48a
test eax, eax
je 0x46c3c3
mov dl, byte [edi + ecx]
movzx eax, dl
test dl, dl
jns 0x46c386
movzx esi, byte [edi + ecx + 1]
and eax, 0x1f
and esi, 0x3f
cmp dl, 0xdf
jbe 0x46c378
mov ebx, ecx
movzx ecx, byte [edi + ecx + 2]
shl esi, 6
and ecx, 0x3f
or ecx, esi
cmp dl, 0xf0
jb 0x46c37f
mov byte [esp + 7], dh
movzx edx, byte [edi + ebx + 3]
and eax, 7
shl ecx, 6
shl eax, 0x12
and edx, 0x3f
or edx, ecx
or eax, edx
mov dh, byte [esp + 7]
jmp 0x46c384
shl eax, 6
or eax, esi
jmp 0x46c386
shl eax, 0xc
or eax, ecx
mov ecx, ebx
test dh, dh
jne 0x46c3df
cmp eax, 0x110000
je 0x46c3fd
mov edx, ecx
cmp eax, 0x80
mov ecx, 1
jb 0x46c3b8
mov ecx, 2
cmp eax, 0x800
jb 0x46c3b8
cmp eax, 0x10000
mov ecx, 4
sbb ecx, 0
add edx, ecx
mov ecx, edx
mov dh, 1
jmp 0x46c302
test dh, dh
mov dword [esp + 0x18], ecx
mov byte [esp + 7], dh
je 0x46c3fd
mov eax, dword [esp + 0x18]
xor byte [esp + 7], 1
mov ebx, eax
jmp 0x46c2b2
xor dh, 1
mov ebx, ecx
mov eax, ecx
mov dword [esp + 0x18], ecx
mov byte [esp + 7], dh
jmp 0x46c2b2
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [edi + 8], eax
jmp 0x46c454
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
add eax, esi
add ecx, esi
push eax
push ecx
lea eax, [esp + 0x3c]
push eax
call fcn.004155f8
add esp, 0xc
mov eax, dword [esp + 0x3c]
mov edi, dword [ebp + 8]
movsd xmm0, qword [esp + 0x34]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x40]
movsd qword [edi], xmm0
test eax, eax
je 0x46c454
push 1
push eax
push esi
call fcn.00414130
add esp, 0xc
jmp 0x46c454
xor eax, eax
mov dword [edi + 8], 0xde
mov dword [edi + 4], eax
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x50a15c
push dword [esp + 0x18]
push eax
jmp 0x46c480
push 0x50a16c
push dword [esp + 0x10]
push edx
jmp 0x46c480
push 0x50a17c
push dword [esp + 0x10]
push ecx
call fcn.004b4860
add esp, 0xc
ud2
push 0x50a18c
mov eax, dword [esp + 0x10]
push eax
push ecx
push eax
push edi
call fcn.004b4dd0
add esp, 0x14
ud2