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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
cmp byte [edi + 0x49], 1
jne 0x46c6d1
mov dl, byte [edi + 0x48]
test dl, 2
je 0x46c6d1
mov eax, dword [edi + 0x78]
cmp byte [eax + 2], 0
je 0x46c6d1
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
cmp ecx, dword [ebp + 0xc]
jne 0x46c6b8
cmp eax, dword [ebp + 0x10]
jne 0x46c6b8
mov eax, dword [ebp + 0x18]
and dword [eax], 0
xor eax, eax
leave
ret
test dl, 8
je 0x46c6d1
cmp eax, dword [ebp + 0x10]
jg 0x46c6d1
jl 0x46c6c9
cmp ecx, dword [ebp + 0xc]
jae 0x46c6d1
mov eax, dword [ebp + 0x18]
or dword [eax], 0xffffffff
jmp 0x46c6b4
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x46c6e6
call fcn.00451f1c
mov dword [ebp - 0x10], eax
mov byte [ecx + 7], 0
jmp 0x46c6ea
and dword [ebp - 0x10], 0
mov eax, edi
call fcn.0046c4a6
test eax, eax
jne 0x46c9d5
cmp byte [edi + 0x49], al
je 0x46c6c9
xor ecx, ecx
inc ecx
sub ecx, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x1c], ecx
push esi
movsx eax, word [edi + 0x4c]
mov ebx, dword [edi + eax*4 + 0x78]
movzx esi, word [ebx + 0x12]
and dword [ebp - 8], 0
dec esi
mov dword [ebp - 0x14], esi
sar esi, cl
cmp dword [ebp - 0x10], 0
mov dword [ebp - 4], esi
mov word [edi + eax*2 + 0x4e], si
jne 0x46c81f
mov eax, dword [ebx + 0x40]
lea ecx, [eax + esi*2]
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
or eax, ecx
movzx ecx, word [ebx + 0x14]
and eax, ecx
add eax, dword [ebx + 0x38]
movzx ecx, byte [ebx + 7]
add eax, ecx
cmp byte [ebx + 3], 0
je 0x46c76f
cmp byte [eax], 0x80
jb 0x46c76e
mov ecx, dword [ebx + 0x3c]
inc eax
cmp eax, ecx
jae 0x46c965
cmp byte [eax], 0x80
jae 0x46c760
inc eax
lea esi, [ebp - 0x24]
call fcn.0043d39f
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x24]
jg 0x46c7a7
jl 0x46c789
cmp ecx, dword [ebp + 0xc]
jae 0x46c79b
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
jle 0x46c7b6
or dword [ebp - 0xc], 0xffffffff
jmp 0x46c7ce
cmp eax, dword [ebp + 0x10]
jl 0x46c7fa
jg 0x46c7a7
cmp ecx, dword [ebp + 0xc]
jbe 0x46c7fa
mov eax, dword [ebp - 4]
dec eax
cmp dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
jg 0x46c7c7
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
add eax, ecx
sar eax, 1
mov dword [ebp - 4], eax
mov esi, eax
jmp 0x46c731
mov dword [ebp - 0xc], 1
mov esi, dword [ebp - 4]
cmp byte [ebx + 5], 0
jne 0x46c992
movzx ecx, word [ebx + 0x12]
mov eax, dword [ebp - 8]
cmp eax, ecx
jl 0x46c920
movzx eax, byte [ebx + 6]
mov ecx, dword [ebx + 0x38]
lea ecx, [eax + ecx + 8]
jmp 0x46c93b
or byte [edi + 0x48], 2
mov dword [edi + 0x18], ecx
movsx ecx, word [edi + 0x4c]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 4]
mov word [edi + ecx*2 + 0x4e], ax
cmp byte [ebx + 5], 0
jne 0x46c972
mov dword [ebp - 8], eax
jmp 0x46c7db
mov eax, dword [ebx + 0x40]
movzx edx, byte [ebx + 7]
lea ecx, [eax + esi*2]
movzx eax, byte [ecx + 1]
movzx ecx, byte [ecx]
shl ecx, 8
or eax, ecx
movzx ecx, word [ebx + 0x14]
and eax, ecx
add eax, dword [ebx + 0x38]
add eax, edx
movzx ecx, byte [eax]
movzx edx, byte [ebx + 8]
cmp ecx, edx
jg 0x46c84e
inc eax
jmp 0x46c86b
mov dl, byte [eax + 1]
test dl, dl
js 0x46c87b
and ecx, 0x7f
movzx edx, dl
shl ecx, 7
add ecx, edx
movzx edx, word [ebx + 0xa]
cmp ecx, edx
jg 0x46c87b
add eax, 2
push dword [ebp + 8]
push eax
push ecx
call dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x46c8e9
movzx edx, byte [ebx + 7]
sub eax, edx
push eax
lea ecx, [edi + 0x18]
push ebx
mov eax, ecx
call fcn.00440060
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x18], eax
cdq
push edx
push eax
call fcn.00444b11
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
je 0x46c97e
movsx ecx, word [edi + 0x4c]
push 2
push eax
push dword [ebp - 0x18]
mov eax, edi
push 0
mov word [edi + ecx*2 + 0x4e], si
call fcn.004687f1
add esp, 0x10
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x46c987
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 0x18]
call dword [ebp - 0x10]
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call fcn.0043c9d0
add esp, 0x10
xor eax, eax
cmp dword [ebp - 0xc], eax
jge 0x46c8f8
lea eax, [esi + 1]
mov dword [ebp - 8], eax
jmp 0x46c904
jle 0x46c9a5
lea eax, [esi - 1]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jg 0x46c7d1
add eax, ecx
sar eax, 1
mov dword [ebp - 4], eax
mov esi, eax
jmp 0x46c81f
mov ecx, dword [ebx + 0x40]
lea eax, [ecx + eax*2]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
movzx eax, word [ebx + 0x14]
and ecx, eax
add ecx, dword [ebx + 0x38]
call fcn.0043d5c3
movsx ecx, word [edi + 0x4c]
mov dx, word [ebp - 8]
push eax
mov esi, edi
mov word [edi + ecx*2 + 0x4e], dx
call fcn.0046c42b
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x46c9c6
mov ecx, dword [ebp - 0x1c]
jmp 0x46c709
push 0xe255
call fcn.0044c2b0
pop ecx
jmp 0x46c9d3
mov eax, dword [ebp + 0x18]
and dword [eax], 0
and dword [ebp - 0xc], 0
jmp 0x46c9c6
mov dword [ebp - 0xc], 7
jmp 0x46c9c6
push dword [ebp - 4]
call fcn.0043c9d0
pop ecx
jmp 0x46c9c6
movsx eax, word [edi + 0x4c]
mov ecx, dword [ebp - 0xc]
mov word [edi + eax*2 + 0x4e], si
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
jmp 0x46c978
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov dword [ebp - 0xc], eax
movsx eax, word [edi + 0x4c]
mov word [edi + eax*2 + 0x4e], si
mov eax, dword [ebp + 8]
cmp byte [eax + 7], 0
je 0x46c9c6
mov dword [ebp - 0xc], 0xb
xor eax, eax
and byte [edi + 0x48], 0xf9
mov word [edi + 0x2c], ax
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret